]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/idcin.c
Add some necessary casts in the wtv demuxer.
[ffmpeg] / libavformat / idcin.c
index 85d538c4f372fbe9951010884485664e19528dfc..9671fca6f8bf8adb106d45eb0ec39d40d1e177f4 100644 (file)
@@ -196,10 +196,8 @@ static int idcin_read_header(AVFormatContext *s)
     st->codec->height = height;
 
     /* load up the Huffman tables into extradata */
-    st->codec->extradata = av_malloc(HUFFMAN_TABLE_SIZE);
-    if (!st->codec->extradata)
+    if (ff_alloc_extradata(st->codec, HUFFMAN_TABLE_SIZE))
         return AVERROR(ENOMEM);
-    st->codec->extradata_size = HUFFMAN_TABLE_SIZE;
     ret = avio_read(pb, st->codec->extradata, HUFFMAN_TABLE_SIZE);
     if (ret < 0) {
         return ret;