diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavformat/smush.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavformat/smush.c')
| -rw-r--r-- | ffmpeg/libavformat/smush.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ffmpeg/libavformat/smush.c b/ffmpeg/libavformat/smush.c index 9c8997c..e9c1937 100644 --- a/ffmpeg/libavformat/smush.c +++ b/ffmpeg/libavformat/smush.c @@ -145,11 +145,9 @@ static int smush_read_header(AVFormatContext *ctx) avpriv_set_pts_info(vst, 64, 66667, 1000000); if (!smush->version) { - vst->codec->extradata = av_malloc(1024 + 2 + FF_INPUT_BUFFER_PADDING_SIZE); - if (!vst->codec->extradata) + if (ff_alloc_extradata(vst->codec, 1024 + 2)) return AVERROR(ENOMEM); - vst->codec->extradata_size = 1024 + 2; AV_WL16(vst->codec->extradata, subversion); for (i = 0; i < 256; i++) AV_WL32(vst->codec->extradata + 2 + i * 4, palette[i]); |
