summaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-03-08 11:21:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-08 11:21:33 +0000
commit952c69c479254496641014f03a51ed0cfd126c1d (patch)
treedb9443e66ccc98a28a929106833f1b9fbaf6dabc /libavformat/avidec.c
parentb559b29b1f9a8ce38f6d23fa4740b74bd5566bd5 (diff)
downloadffmpeg-streaming-952c69c479254496641014f03a51ed0cfd126c1d.zip
ffmpeg-streaming-952c69c479254496641014f03a51ed0cfd126c1d.tar.gz
huffyuv encoding fixed
Originally committed as revision 1647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index cfbcc37..956191a 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -174,6 +174,9 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
st->codec.extradata_size= size - 10*4;
st->codec.extradata= av_malloc(st->codec.extradata_size); //FIXME where should we free this?
get_buffer(pb, st->codec.extradata, st->codec.extradata_size);
+
+ if(st->codec.extradata_size & 1) //FIXME check if the encoder really did this correctly
+ get_byte(pb);
#ifdef DEBUG
print_tag("video", tag1, 0);
OpenPOWER on IntegriCloud