Statistics
| Branch: | Revision:

ffmpeg / libavcodec / utils.c @ dc172ecc

History | View | Annotate | Download (39 KB)

# Date Author Comment
dc172ecc 04/10/2011 08:33 PM Oskar Arvidsson

Add the notion of pixel size in h264 related functions.

In high bit depth the pixels will not be stored in uint8_t like in the
normal case, but in uint16_t. The pixel size is thus 1 in normal bit
depth and 2 in high bit depth.

Preparatory patch for high bit depth h264 decoding support....

d4497f6d 04/10/2011 08:33 PM Oskar Arvidsson

Add pixel formats for 9- and 10-bit yuv420p.

Also add support for these formats in libswscale.

Needed for high bit depth h264 decoding.

Signed-off-by: Michael Niedermayer <>

11d78415 04/06/2011 12:59 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    psymodel: extend API to include PE and bit allocation.
    avio: always compile dyn_buf functions
    Remove unnecessary parameter from ff_thread_init() and fix behavior
    Revert "aac_latm_dec: use aac context and aac m4ac"...
ba9ef8d0 04/05/2011 02:53 PM Alexander Strange

Remove unnecessary parameter from ff_thread_init() and fix behavior

thread_count passed to ff_thread_init() is only used to set AVCodecContext.
thread_count, and can be removed. Instead move it to the legacy implementation
of avcodec_thread_init().

This also fixes the problem that calling avcodec_thread_init() with pthreads...

46027c72 03/28/2011 09:07 PM Reimar Döffinger

Unbreak avcodec_thread_init

avcodec_thread_init currently doesn't do anything at all with pthreads enabled.

d375c104 03/22/2011 09:36 PM Michael Niedermayer

Fake-Merge remote-tracking branch 'ffmpeg-mt/master'

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

e528cdac 03/17/2011 04:26 PM Michael Niedermayer

Revert "replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION"

This reverts commit 29ba091136a5e04574f7bfc1b17536c923958f6f.

0cb88628 03/17/2011 04:26 PM Michael Niedermayer

Revert "use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*"

This reverts commit a03be6e1ba4cbf9984b0bbdb674704bbb2da6713.

0fecf264 03/17/2011 04:22 PM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

Conflicts:
Changelog
doc/APIchanges
doc/optimization.txt
libavformat/avio.h

Merged-by: Michael Niedermayer <>

a03be6e1 03/16/2011 08:54 PM Janne Grunau

use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*

29ba0911 03/16/2011 08:54 PM Janne Grunau

replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION

also update the multiple inclusion guards in config.h|mak

21de9204 03/13/2011 10:45 PM Johan Andersson

Update the url to the site website and change ffmpeg-devel to libav-devel

Signed-off-by: Ronald S. Bultje <>

ad82bf9c 03/04/2011 03:24 AM Michael Niedermayer

Move guess_correct_pts() under got_picture_ptr.

7ffe76e5 02/16/2011 10:00 PM Reinhard Tartler

Merge libavcore into libavutil

Done to keep ABI compatible. Otherwise this is just silly

737eb597 02/15/2011 03:18 PM Reinhard Tartler

Merge libavcore into libavutil

It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody...

952f2315 02/11/2011 01:54 AM Mans Rullgard

Remove incorrect return statement from avcodec_thread_free()

The function return type is void, so a return statement with an
expression is forbidden (and pointless).

Signed-off-by: Mans Rullgard <>
(cherry picked from commit b4668274b944abae61759e796c5cc36ade510f24)

ee5bb31f 02/11/2011 01:54 AM Mans Rullgard

Fix build with threading disabled

The avcodec_thread_free() compatibility wrapper calls ff_thread_free(),
which is not defined when threading is disabled. Make this call
conditional.

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 9a77a92c2b6855781d2a4cfab14c67ae4025760c)

7ade06cc 02/11/2011 01:54 AM Reimar Döffinger

check sample_fmt in avcodec_open

check AVCodecContext->sample_fmt against AVCodec->sample_fmts[] to ensure
that the encoder supports the specified sample format. Error out if it doesn't.
Previously, it would continue and output garbage. Fixes issue 2587....

043d2ff2 02/11/2011 01:54 AM Alexander Strange

Deprecate avcodec_thread_init()

As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.

avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the...

b38f008e 02/11/2011 01:53 AM Alexander Strange

Frame-based multithreading framework using pthreads

See doc/multithreading.txt for details on use in codecs.

Signed-off-by: Ronald S. Bultje <>

b4668274 02/10/2011 02:17 PM Mans Rullgard

Remove incorrect return statement from avcodec_thread_free()

The function return type is void, so a return statement with an
expression is forbidden (and pointless).

Signed-off-by: Mans Rullgard <>

9a77a92c 02/09/2011 08:52 PM Mans Rullgard

Fix build with threading disabled

The avcodec_thread_free() compatibility wrapper calls ff_thread_free(),
which is not defined when threading is disabled. Make this call
conditional.

Signed-off-by: Mans Rullgard <>

2cfa2d92 02/09/2011 08:30 PM Reimar Döffinger

check sample_fmt in avcodec_open

check AVCodecContext->sample_fmt against AVCodec->sample_fmts[] to ensure
that the encoder supports the specified sample format. Error out if it doesn't.
Previously, it would continue and output garbage. Fixes issue 2587.

c0b102ca 02/09/2011 02:17 PM Alexander Strange

Deprecate avcodec_thread_init()

As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.

avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the...

37b00b47 02/09/2011 02:17 PM Alexander Strange

Frame-based multithreading framework using pthreads

See doc/multithreading.txt for details on use in codecs.

Signed-off-by: Ronald S. Bultje <>

76ad67ca 02/07/2011 06:32 PM Nicolas George

Implement guessed_pts in avcodec_decode_video2

Signed-off-by: Nicolas George <>
Signed-off-by: Michael Niedermayer <>

cf96cce7 02/04/2011 02:10 AM Nicolas George

Set pkt_pts in avcodec_default_reget_buffer()

This was missed when pkt_pts was first added.

Signed-off-by: Nicolas George <>
Signed-off-by: Mans Rullgard <>
(cherry picked from commit 62ecd3635a1329c49bc3b97ba84ad4d53d847163)

62ecd363 02/03/2011 12:25 AM Nicolas George

Set pkt_pts in avcodec_default_reget_buffer()

This was missed when pkt_pts was first added.

Signed-off-by: Nicolas George <>
Signed-off-by: Mans Rullgard <>

291f326a 01/26/2011 02:43 AM Diego Elio Pettenò

Make the ff_lockmgr_cb function pointer static to utils.c

Signed-off-by: Mans Rullgard <>
(cherry picked from commit bb875b75bab4d1713f8251746b01785c19965a9f)

bb875b75 01/24/2011 11:45 PM Diego Elio Pettenò

Make the ff_lockmgr_cb function pointer static to utils.c

Signed-off-by: Mans Rullgard <>

db323491 01/17/2011 09:13 PM Janne Grunau

update av_log_missing_feature() to git

Signed-off-by: Janne Grunau <>

e83c716e 01/12/2011 12:33 AM Aurelien Jacobs

don't complain about codec type/id mismatche for attachment streams

Originally committed as revision 26316 to svn://svn.ffmpeg.org/ffmpeg/trunk

2a81f4bd 01/08/2011 09:23 AM Anssi Hannula

Show profile in avcodec_string().

Patch by Anssi Hannula, anssi d hannula a iki d fi

Originally committed as revision 26264 to svn://svn.ffmpeg.org/ffmpeg/trunk

1919feaf 01/07/2011 11:07 PM Michael Niedermayer

Add pkt_dts to AVFrame, this will in the future allow multithreading decoders
to not mess up dts

Originally committed as revision 26261 to svn://svn.ffmpeg.org/ffmpeg/trunk

393cbb96 01/07/2011 11:07 PM Michael Niedermayer

Add AVFrame.pkt_pts that contains the correctly reordered AVPacket.pts

Originally committed as revision 26260 to svn://svn.ffmpeg.org/ffmpeg/trunk

060ec0a8 01/07/2011 10:27 PM Anssi Hannula

Add av_get_profile_name() to get profile names.

Patch by Anssi Hannula, anssi d hannula a iki d fi

Originally committed as revision 26259 to svn://svn.ffmpeg.org/ffmpeg/trunk

f19c58b4 12/31/2010 12:06 AM Aurelien Jacobs

free subtitle_header before overwriting it to avoid memleak

Originally committed as revision 26176 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba68d9d3 12/19/2010 12:17 PM Anatoly Nenashev

Fix -lowres with ffplay.

Patch by Anatoly Nenashev, anatoly d nenashev a ovsoft d ru

Originally committed as revision 26057 to svn://svn.ffmpeg.org/ffmpeg/trunk

372c3f82 12/04/2010 04:00 AM Michael Niedermayer

Change the argument of memory allocation functions from unsigned int to size_t
with the next major bump in libavcodec.

Originally committed as revision 25872 to svn://svn.ffmpeg.org/ffmpeg/trunk

63e8d976 11/21/2010 08:06 PM Stefano Sabatini

Use the new libavcore audio channel API.

This also allows to remove a linking dependency of libavfilter on
libavcodec.

Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk

5d6e4c16 11/12/2010 11:04 AM Stefano Sabatini

Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
SampleFormat with AVSampleFormat.

Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk

ed5d30d9 11/09/2010 10:22 PM Stefano Sabatini

Move internal function ff_set_systematic_pal() to libavcore, and
rename it ff_set_systematic_pal2().

Originally committed as revision 25712 to svn://svn.ffmpeg.org/ffmpeg/trunk

00d1e96b 11/03/2010 08:52 PM Reimar Döffinger

H.264 decode: support cropping up to 28 pixels in interlaced mode.
Contrary to progressive, just being able to crop up to 14/15 pixels
is not enough to encode all supported resolutions, and the new
behaviour is also consistent with e.g. MPEG-2 etc.

Originally committed as revision 25669 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba7d6e79 11/03/2010 08:19 PM Stefano Sabatini

Remove usage of deprecated libavcodec/audioconvert.h functions.

Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk

6f84cd12 11/02/2010 10:20 PM Stefano Sabatini

Add av_get_bits_per_sample_fmt() to libavcore/samplefmt.h and
deprecate av_get_bits_per_sample_format().

Originally committed as revision 25654 to svn://svn.ffmpeg.org/ffmpeg/trunk

448ce925 09/30/2010 08:12 PM Aurelien Jacobs

add FF_API_SUBTITLE_OLD define to disable the deprecated decode_subtitle API

Originally committed as revision 25273 to svn://svn.ffmpeg.org/ffmpeg/trunk

164bc38c 09/30/2010 07:51 PM Aurelien Jacobs

add FF_API_VIDEO_OLD define to disable the deprecated decode_video API

Originally committed as revision 25272 to svn://svn.ffmpeg.org/ffmpeg/trunk

a377cfa6 09/30/2010 03:37 PM Aurelien Jacobs

add FF_API_AUDIO_OLD define to disable the deprecated decode_audio API

Originally committed as revision 25270 to svn://svn.ffmpeg.org/ffmpeg/trunk

dc51a72b 09/29/2010 03:05 PM Michael Niedermayer

Move allocation and init to defaults of the private codec contexts to avcodec_get_context_defaults3().
That way the user app can set codec specific parameters in the private context
before opening it.

Originally committed as revision 25257 to svn://svn.ffmpeg.org/ffmpeg/trunk

6ed04040 09/26/2010 02:25 PM Michael Niedermayer

Move AVOptions from libavcodec to libavutil

Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk

82eac2f3 09/15/2010 04:46 AM Reimar Döffinger

Check avctx width/height more thoroughly (e.g. all values 0 except width would
have been accepted before).
Also do not fail if they are invalid but instead override them to 0.
This allows decoding e.g. MPEG video when only the container values are corrupted....

527c91e3 09/13/2010 10:03 PM Carl Eugen Hoyos

Test lowres before codec init.

Originally committed as revision 25114 to svn://svn.ffmpeg.org/ffmpeg/trunk

535cb043 09/10/2010 06:19 AM Martin Storsjö

Allow the lowres option to affect audio codecs, too

Originally committed as revision 25094 to svn://svn.ffmpeg.org/ffmpeg/trunk

9d2e0ad8 09/07/2010 09:24 PM Stefano Sabatini

Remove use of deprecated functions av_image_fill_pointers/linesizes in
libavcodec/utils.c, fix warnings.

Originally committed as revision 25069 to svn://svn.ffmpeg.org/ffmpeg/trunk

e16f217c 09/07/2010 07:15 PM Stefano Sabatini

Use new imgutils.h API names, fix deprecation warnings.

Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk

6ce9b431 08/06/2010 09:37 AM Stefano Sabatini

Remove use of the deprecated function avcodec_check_dimensions(), use
av_check_image_size() instead.

Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk

bf176f58 08/06/2010 09:36 AM Stefano Sabatini

Deprecate avcodec_check_dimensions() in favor of the new function
av_check_image_size() declared in libavcore/imgutils.h.

Originally committed as revision 24709 to svn://svn.ffmpeg.org/ffmpeg/trunk

05236ed7 07/31/2010 04:46 PM Stefano Sabatini

Use av_fill_image_pointers/linesizes in place of ff_fill_pointer/linesize,
and drop the the ff_ variants at the next major bump.

Originally committed as revision 24620 to svn://svn.ffmpeg.org/ffmpeg/trunk

126b638e 07/26/2010 11:12 PM Stefano Sabatini

Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
in favor of the newly added corresponding functions
av_parse_video_size() and av_parse_video_rate() defined in
libavcore/parseutils.h.

This change also adds a linking-time dependency of libavcodec and of...

8b834ac5 07/11/2010 07:53 AM Reimar Döffinger

100l, change avsubtitle_free to the actually tested and working version.

Originally committed as revision 24188 to svn://svn.ffmpeg.org/ffmpeg/trunk

e1d7c883 07/11/2010 07:35 AM Reimar Döffinger

Add avsubtitle_free function.

Originally committed as revision 24185 to svn://svn.ffmpeg.org/ffmpeg/trunk

0fd0ef79 07/07/2010 09:23 PM Carl Eugen Hoyos

Add new decoder property max_lowres and do not init decoder if requested value is higher.

Originally committed as revision 24098 to svn://svn.ffmpeg.org/ffmpeg/trunk

25cbc8b4 07/06/2010 01:04 PM Måns Rullgård

Move av_tempfile() to libxvidff.c as only the xvid wrapper needs it

Originally committed as revision 24074 to svn://svn.ffmpeg.org/ffmpeg/trunk

49bd8e4b 06/30/2010 03:38 PM Måns Rullgård

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk

ab0b5378 06/02/2010 10:54 AM Stefano Sabatini

Make avcodec_string() use av_get_codec_tag_string().

Originally committed as revision 23422 to svn://svn.ffmpeg.org/ffmpeg/trunk

7e566bbe 06/02/2010 10:54 AM Stefano Sabatini

Implement av_get_codec_tag_string() and use it in ffprobe.

Originally committed as revision 23421 to svn://svn.ffmpeg.org/ffmpeg/trunk

3491a9b2 05/27/2010 04:25 AM Jai Menon

Cosmetics : Fix typo.

Originally committed as revision 23345 to svn://svn.ffmpeg.org/ffmpeg/trunk

93ebfeea 05/26/2010 10:38 AM Janne Grunau

Add CODEC_CAP_EXPERIMENTAL and prefer encoders without it.

Patch by Janne Grunau, janne-ffmpeg jannau net

Originally committed as revision 23334 to svn://svn.ffmpeg.org/ffmpeg/trunk

603a5f04 05/18/2010 07:16 PM Francesco Lavra

Factorize some code into the new function ff_toupper4().

Patch by Francesco Lavra, francescolavra interfree it

Originally committed as revision 23158 to svn://svn.ffmpeg.org/ffmpeg/trunk

b3ab3199 05/12/2010 05:05 PM Reimar Döffinger

Set coded_frame to NULL when closing a codec, since it might
be invalid after the codec is "gone".

Originally committed as revision 23101 to svn://svn.ffmpeg.org/ffmpeg/trunk

4cf1ba04 04/25/2010 03:05 PM Stefano Sabatini

Make avcodec_check_dimensions() return AVERROR rather than -1
in case of invalid picture size.

Originally committed as revision 22962 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba87f080 04/20/2010 02:45 PM Diego Biurrun

Remove explicit filename from Doxygen @file commands.

Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk

4563cf24 04/13/2010 11:24 PM Stefano Sabatini

Factorize code in get_bit_rate().

Originally committed as revision 22879 to svn://svn.ffmpeg.org/ffmpeg/trunk

77a670e7 04/06/2010 09:52 AM Craig Thomasson

Fix segfault when encoder initialization fails.
Patch by Craig Thomasson $(name) dot $(surname) ripcode com

Originally committed as revision 22811 to svn://svn.ffmpeg.org/ffmpeg/trunk

0fb49b59 04/01/2010 06:41 AM Bobby Bingham

Add function to export EDGE_WIDTH from libavcodec.

Originally committed as revision 22753 to svn://svn.ffmpeg.org/ffmpeg/trunk

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk

406aa93f 02/28/2010 07:05 PM Carl Eugen Hoyos

Make av_get_bit_rate() static and remove av_, the function is only used
inside libavcodec/utils.c.

Originally committed as revision 22117 to svn://svn.ffmpeg.org/ffmpeg/trunk

88f83607 02/28/2010 07:03 PM Carl Eugen Hoyos

Include libxvid_internal.h: It contains the prototype for av_tempfile().

Originally committed as revision 22116 to svn://svn.ffmpeg.org/ffmpeg/trunk

eb285cfe 02/27/2010 09:13 PM Reimar Döffinger

Fix avcodec_align_dimensions to return values suitably aligned for FLV decoding
with SSE and add a avcodec_align_dimensions2 taht returns the stride alignment
requirements independently from doing the width/height padding.

Originally committed as revision 22095 to svn://svn.ffmpeg.org/ffmpeg/trunk

c4f267ab 02/20/2010 06:28 PM Vitor Sessak

Free encoder extradata in avcodec_close(). Should fix several small memory
leaks when encoding (at least for asv, wma and aac).

Fix also issue 1577.

Originally committed as revision 21923 to svn://svn.ffmpeg.org/ffmpeg/trunk

b7098cc1 02/12/2010 10:01 PM David Conrad

Special case VP5/6 chroma alignment on x86 as well

Originally committed as revision 21782 to svn://svn.ffmpeg.org/ffmpeg/trunk

0752cd39 01/13/2010 02:16 AM Zuxy Meng

More av_cold for infrequently called functions.

Originally committed as revision 21179 to svn://svn.ffmpeg.org/ffmpeg/trunk

c46eeae2 01/09/2010 06:33 PM Michael Niedermayer

Add a function to match a 2 element vector of uint16_t and use it in h263 and svq1
instead of custom and bloated code to find an index into a w/h array.

Originally committed as revision 21113 to svn://svn.ffmpeg.org/ffmpeg/trunk

07f2a575 01/06/2010 11:15 PM Carl Eugen Hoyos

100l: Fix compilation after r21037.

Originally committed as revision 21039 to svn://svn.ffmpeg.org/ffmpeg/trunk

9df9b810 01/06/2010 09:51 PM Daniel Verkamp

Handle more ADPCM codecs in av_get_bits_per_sample().

This removes some special-case code from riff.c.
CODEC_ID_ADPCM_G726 is still handled in riff.c as before because it is
not guaranteed to be fixed 4 bits per sample.

Originally committed as revision 21037 to svn://svn.ffmpeg.org/ffmpeg/trunk

41600690 01/03/2010 02:31 PM Stefano Sabatini

Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for XXX_configuration() and
XXX_license() functions, consistent with the rest of FFmpeg.

Originally committed as revision 21005 to svn://svn.ffmpeg.org/ffmpeg/trunk

b8af4fe9 12/14/2009 11:42 AM Michael Niedermayer

Set reordered_opaque in default_reget_buffer() with internal buffers.
From ffmbc0.3, this one appears to be a bugfix.

Originally committed as revision 20862 to svn://svn.ffmpeg.org/ffmpeg/trunk

ce34ff6b 11/21/2009 09:58 AM Robert Krüger

Factorize av_get_bit_rate (for future use outside of libavcodec).

Patch by Robert Krüger, krueger signal7 de

Originally committed as revision 20569 to svn://svn.ffmpeg.org/ffmpeg/trunk

98c82d69 11/20/2009 10:14 PM Michael Niedermayer

Allocate pictures with enough padding for jpeg.
Ensure that jpeg does not use mbs that could require larger padding.
This might have been exploitable.

Originally committed as revision 20566 to svn://svn.ffmpeg.org/ffmpeg/trunk

c1736936 11/18/2009 05:15 PM Diego Biurrun

Add functions to return library license and library configuration.

Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk

dccda293 11/10/2009 02:51 AM Michael Niedermayer

Add a NULL pointer check to avcodec_close() this should prevent a segfault
when closing without open.

Originally committed as revision 20495 to svn://svn.ffmpeg.org/ffmpeg/trunk

91cc5d37 11/09/2009 09:11 AM Francesco Lavra

Move ff_reverse in libavcodec to av_reverse in libavutil.

Patch by Francesco Lavra, francescolavra interfree it

Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk

ea09f691 10/13/2009 08:48 PM Reimar Döffinger

Print a warning message when avcodec_default_free_buffers finds unreleased
buffers, this hopefully should help detect codecs that do not release all
buffers e.g. in the decode_end function.

Originally committed as revision 20230 to svn://svn.ffmpeg.org/ffmpeg/trunk

8d23a86f 10/12/2009 11:35 AM Reimar Döffinger

Add an execute2 function that is more flexible and allows to use parallel
processing with jobs > threads without wasting too much memory.
It also avoids needing a separate int array when the only additional data
the jobs needs is a single int running from 0 to count-1....

681c180d 10/01/2009 03:54 PM Reimar Döffinger

Make avcodec_open set codec_id and codec_type if they haven't been set.
This fixes the API breakage introduced by the check that avctx codec id and type
match the opened codec and should make (almost?) all applications work again.

Originally committed as revision 20125 to svn://svn.ffmpeg.org/ffmpeg/trunk

2a9b5c9b 09/23/2009 03:16 PM Michael Niedermayer

Make sure priv_data is freed and codec is set to NULL in case of failure of avcodec_open().

Originally committed as revision 20002 to svn://svn.ffmpeg.org/ffmpeg/trunk

4c0dda2b 09/22/2009 10:44 PM Michael Niedermayer

Check codec_id and codec_type in avcodec_open(), based on 43_codec_type_mismatch.patch from chrome
This is said to be able to lead to a stack based buffer overflow.

Originally committed as revision 19973 to svn://svn.ffmpeg.org/ffmpeg/trunk

40461e54 09/20/2009 06:29 PM Diego Biurrun

Add parentheses to logical expression to avoid the warning:
libavcodec/utils.c:476: warning: suggest parentheses around && within ||

Originally committed as revision 19933 to svn://svn.ffmpeg.org/ffmpeg/trunk

fa77dd63 09/16/2009 11:29 AM Peter Ross

perform sanity check on number of audio channels in avcodec_open()

Originally committed as revision 19877 to svn://svn.ffmpeg.org/ffmpeg/trunk