diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-03-19 03:51:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-03-19 03:51:36 +0000 |
commit | 488fa19a86dd9f9ae3adfedcd45fe62acf6d309a (patch) | |
tree | 286d8c4532550f392b4362db12ab50a1fa9fd197 /libavcodec/h263.c | |
parent | 019d276a127b348f5154e4754c30da114bcfd4ed (diff) | |
download | ffmpeg-488fa19a86dd9f9ae3adfedcd45fe62acf6d309a.tar.gz |
use the width & height from the mpeg4 header ... in the case that its complete
Originally committed as revision 340 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index d68240bc72..34cfe46b44 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -2149,6 +2149,10 @@ int mpeg4_decode_picture_header(MpegEncContext * s) skip_bits1(&s->gb); /* marker */ height = get_bits(&s->gb, 13); skip_bits1(&s->gb); /* marker */ + if(width && height){ /* they should be non zero but who knows ... */ + s->width = width; + s->height = height; + } } if(get_bits1(&s->gb)) printf("interlaced not supported\n"); /* interlaced */ |