diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-12-15 03:00:16 +0300 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-12-15 03:00:16 +0300 |
commit | bf73801bec57fafbf160ee10d072d64b8bb510ba (patch) | |
tree | 5920fb567b7f16893be3d11b73c75d0aa6ead9c5 /libavcodec/vp6.c | |
parent | b9b2b8c93b40a2d96f25362e9c8d7611d0adc3c7 (diff) |
vp56: don't reset dimensions to 0 in codec init
Originally committed as revision 16140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r-- | libavcodec/vp6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index d8fc0efb3a..6ffde072f7 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -75,7 +75,8 @@ static int vp6_parse_header(VP56Context *s, const uint8_t *buf, int buf_size, /* buf[4] is number of displayed macroblock rows */ /* buf[5] is number of displayed macroblock cols */ - if (16*cols != s->avctx->coded_width || + if (!s->macroblocks || /* first frame */ + 16*cols != s->avctx->coded_width || 16*rows != s->avctx->coded_height) { avcodec_set_dimensions(s->avctx, 16*cols, 16*rows); if (s->avctx->extradata_size == 1) { |