diff options
author | James Almer <jamrial@gmail.com> | 2013-10-13 20:02:28 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-14 13:02:18 +0200 |
commit | 1d4476d5dab1dd347f6870d6c5537dced8516986 (patch) | |
tree | 959a8eec37d674c358271941c60eaa13f009c59e /libavformat | |
parent | 00408f95e7fa3761180f95d89f39377c77a0252e (diff) | |
download | ffmpeg-1d4476d5dab1dd347f6870d6c5537dced8516986.tar.gz |
movenc: use ff_alloc_extradata()
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 60c028eeb2..329676247b 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3507,10 +3507,8 @@ static int mov_create_chapter_track(AVFormatContext *s, int tracknum) #if 0 // These properties are required to make QT recognize the chapter track uint8_t chapter_properties[43] = { 0, 0, 0, 0, 0, 0, 0, 1, }; - track->enc->extradata = av_malloc(sizeof(chapter_properties)); - if (track->enc->extradata == NULL) + if (ff_alloc_extradata(track->enc, sizeof(chapter_properties))) return AVERROR(ENOMEM); - track->enc->extradata_size = sizeof(chapter_properties); memcpy(track->enc->extradata, chapter_properties, sizeof(chapter_properties)); #else if (avio_open_dyn_buf(&pb) >= 0) { |