summaryrefslogtreecommitdiff
path: root/libavformat/4xm.c
diff options
context:
space:
mode:
authorRoberto Togni <r_togni@tiscali.it>2007-08-27 21:58:39 +0000
committerRoberto Togni <r_togni@tiscali.it>2007-08-27 21:58:39 +0000
commitb6f508bbcc60b942b85e94997b39df4599d93866 (patch)
tree123dd51d74199a0174590226646603595d1b0bd1 /libavformat/4xm.c
parente89d9fd89cd81099c9b6bd99b2209a7d5f966d67 (diff)
Change 4xm demuxer and video decoder to pass the video format version in
extradata instead of codec_tag. Originally committed as revision 10253 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/4xm.c')
-rw-r--r--libavformat/4xm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index 94bd025c08..5f982e3c88 100644
--- a/libavformat/4xm.c
+++ b/libavformat/4xm.c
@@ -149,7 +149,9 @@ static int fourxm_read_header(AVFormatContext *s,
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;