Browse Source

avformat/nuv: use ff_get_extradata()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
bb6101d4de
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/nuv.c

+ 1
- 2
libavformat/nuv.c View File

@@ -86,9 +86,8 @@ static int get_codec_data(AVIOContext *pb, AVStream *vst,
av_freep(&vst->codec->extradata);
vst->codec->extradata_size = 0;
}
if (ff_alloc_extradata(vst->codec, size))
if (ff_get_extradata(vst->codec, pb, size) < 0)
return AVERROR(ENOMEM);
avio_read(pb, vst->codec->extradata, size);
size = 0;
if (!myth)
return 0;


Loading…
Cancel
Save