Mercurial > mplayer.hg
annotate libmpcodecs/vd_ffmpeg.h @ 33109:01b19cf2649c
Fix segfault in lavcac3enc audio filter.
The FFmpeg ac3 encoder would fail to open
if the correct sample format is not set.
As the opening is done in control()
the audio filter would not fail back,
but would instead continue and call
encoding functions that dereference
NULL pointer.
author | iive |
---|---|
date | Sun, 03 Apr 2011 14:39:27 +0000 |
parents | f957f330aa6d |
children |
rev | line source |
---|---|
31959
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
1 /* |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
2 * This file is part of MPlayer. |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
3 * |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
4 * MPlayer is free software; you can redistribute it and/or modify |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
5 * it under the terms of the GNU General Public License as published by |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
6 * the Free Software Foundation; either version 2 of the License, or |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
7 * (at your option) any later version. |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
8 * |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
9 * MPlayer is distributed in the hope that it will be useful, |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
12 * GNU General Public License for more details. |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
13 * |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
14 * You should have received a copy of the GNU General Public License along |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
17 */ |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
18 |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
19 #ifndef MPLAYER_VD_FFMPEG_H |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
20 #define MPLAYER_VD_FFMPEG_H |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
21 |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
22 void init_avcodec(void); |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
23 |
f957f330aa6d
Introduce init_avcodec function to avoid duplicated FFmpeg initializations.
diego
parents:
diff
changeset
|
24 #endif /* MPLAYER_VD_FFMPEG_H */ |