[FFmpeg-cvslog] avformat/cafdec: use ff_get_extradata()

Michael Niedermayer git at videolan.org
Wed Dec 25 17:48:53 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 25 16:37:42 2013 +0100| [773f2a563f7a450708be021b36dc80bcee7cae3e] | committer: Michael Niedermayer

avformat/cafdec: use ff_get_extradata()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=773f2a563f7a450708be021b36dc80bcee7cae3e
---

 libavformat/cafdec.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index e954c65..0b5d59c 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -154,9 +154,8 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size)
             avio_skip(pb, size - ALAC_NEW_KUKI);
         }
     } else {
-        if (ff_alloc_extradata(st->codec, size))
+        if (ff_get_extradata(st->codec, pb, size) < 0)
             return AVERROR(ENOMEM);
-        avio_read(pb, st->codec->extradata, size);
     }
 
     return 0;



More information about the ffmpeg-cvslog mailing list