# HG changeset patch # User reimar # Date 1292149421 0 # Node ID e006d3eb4e607752c4aa18fd9dd6874223767741 # Parent a1916dd90391e883047dfdfdb0ee4eb5ba7b5930 Treat non-ref frames like B-frames even if has_b_frames is not set and they are indeed not B-frames (no reordering). This happens with flv files, as in bug #1079, and this change fixes that corruption. diff -r a1916dd90391 -r e006d3eb4e60 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Sun Dec 12 01:32:21 2010 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sun Dec 12 10:23:41 2010 +0000 @@ -636,7 +636,7 @@ return avctx->get_buffer(avctx, pic); } - if(avctx->has_b_frames){ + if(avctx->has_b_frames || ctx->b_count){ type= MP_IMGTYPE_IPB; }else{ type= MP_IMGTYPE_IP;