diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-25 13:34:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-25 15:15:16 +0200 |
commit | 46a35959d8c17f7ae272ca158d05e047d31e736c (patch) | |
tree | 2a999b2c04b33514efea0e2f75917e83a45e36e3 /doc | |
parent | 2089f933003b951b96b95e976bd34bbeffbd29f3 (diff) | |
parent | 7751e4693dd10ec98c20fbd9887233b575034272 (diff) | |
download | ffmpeg-46a35959d8c17f7ae272ca158d05e047d31e736c.tar.gz |
Merge commit '7751e4693dd10ec98c20fbd9887233b575034272'
* commit '7751e4693dd10ec98c20fbd9887233b575034272':
ogg: check that the expected number of headers had been parsed
libx264: change default to closed gop to match x264cli
Use avcodec_free_frame() to free AVFrames.
lavf: use a malloced AVFrame in try_decode_frame().
lavc: add avcodec_free_frame().
lavc: ensure extended_data is set properly on decoding
lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults()
lavc: use av_mallocz to allocate AVFrames.
lavc: rename the argument of avcodec_alloc_frame/get_frame_defaults
Conflicts:
doc/APIchanges
doc/examples/decoding_encoding.c
libavcodec/utils.c
libavcodec/version.h
libavfilter/src_movie.c
libavformat/oggdec.c
libavformat/oggdec.h
libavformat/oggparsetheora.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/APIchanges | 4 | ||||
-rw-r--r-- | doc/examples/decoding_encoding.c | 8 | ||||
-rw-r--r-- | doc/examples/muxing.c | 1 |
3 files changed, 9 insertions, 4 deletions
diff --git a/doc/APIchanges b/doc/APIchanges index b1a5598584..6584e1950f 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -83,6 +83,10 @@ API changes, most recent first: 2012-03-26 - a67d9cf - lavfi 2.66.100 Add avfilter_fill_frame_from_{audio_,}buffer_ref() functions. +2012-09-23 - xxxxxxx - lavc 54.28.0 - avcodec.h + Add avcodec_free_frame(). This function must now + be used for freeing an AVFrame. + 2012-09-12 - xxxxxxx - lavu 51.41.0 - audioconvert.h Added AV_CH_LOW_FREQUENCY_2 channel mask value. diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c index e5372a15ef..fcd7dfbe07 100644 --- a/doc/examples/decoding_encoding.c +++ b/doc/examples/decoding_encoding.c @@ -222,7 +222,7 @@ static void audio_encode_example(const char *filename) fclose(f); av_freep(&samples); - av_freep(&frame); + avcodec_free_frame(&frame); avcodec_close(c); av_free(c); } @@ -320,7 +320,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) avcodec_close(c); av_free(c); - av_free(decoded_frame); + avcodec_free_frame(&decoded_frame); } /* @@ -454,7 +454,7 @@ static void video_encode_example(const char *filename, int codec_id) avcodec_close(c); av_free(c); av_freep(&frame->data[0]); - av_free(frame); + avcodec_free_frame(&frame); printf("\n"); } @@ -594,7 +594,7 @@ static void video_decode_example(const char *outfilename, const char *filename) avcodec_close(c); av_free(c); - av_free(picture); + avcodec_free_frame(&picture); printf("\n"); } diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 0d3f7abc48..f43a85e8ee 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -163,6 +163,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st) fprintf(stderr, "Error while writing audio frame\n"); exit(1); } + avcodec_free_frame(&frame); } static void close_audio(AVFormatContext *oc, AVStream *st) |