Mercurial > libavformat.hg
changeset 2410:9b58a031620e libavformat
Change 4xm demuxer and video decoder to pass the video format version in
extradata instead of codec_tag.
author | rtogni |
---|---|
date | Mon, 27 Aug 2007 21:58:39 +0000 |
parents | 94908f6107ff |
children | 9134c5f663bd |
files | 4xm.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/4xm.c Mon Aug 27 12:36:19 2007 +0000 +++ b/4xm.c Mon Aug 27 21:58:39 2007 +0000 @@ -149,7 +149,9 @@ st->codec->codec_type = CODEC_TYPE_VIDEO; st->codec->codec_id = CODEC_ID_4XM; - st->codec->codec_tag = AV_RL32(&header[i + 16]); + st->codec->extradata_size = 4; + st->codec->extradata = av_malloc(4); + AV_WL32(st->codec->extradata, AV_RL32(&header[i + 16])); st->codec->width = fourxm->width; st->codec->height = fourxm->height;