summaryrefslogtreecommitdiff
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-03-18 21:06:07 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-03-18 21:06:07 +0000
commit019d276a127b348f5154e4754c30da114bcfd4ed (patch)
treed550729f94bda6269d0e6da9e1e49fc76928cabc /libavcodec/h263dec.c
parent2e3be0fba911d0567b2c501640ad2f3fa85233cb (diff)
msmpeg4 bugfix (wrong frame displayed if some frames are skipped)
Originally committed as revision 339 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 24e3729293..5da9ac5dd9 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -238,7 +238,7 @@ static int h263_decode_frame(AVCodecContext *avctx,
MPV_frame_end(s);
- if(s->pict_type==B_TYPE){
+ if(s->pict_type==B_TYPE || (!s->has_b_frames)){
pict->data[0] = s->current_picture[0];
pict->data[1] = s->current_picture[1];
pict->data[2] = s->current_picture[2];