[MPlayer-cvslog] r32700 - trunk/libmpcodecs/vd_ffmpeg.c
reimar
subversion at mplayerhq.hu
Sun Dec 12 11:23:41 CET 2010
Author: reimar
Date: Sun Dec 12 11:23:41 2010
New Revision: 32700
Log:
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.
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Sun Dec 12 02:32:21 2010 (r32699)
+++ trunk/libmpcodecs/vd_ffmpeg.c Sun Dec 12 11:23:41 2010 (r32700)
@@ -636,7 +636,7 @@ static int get_buffer(AVCodecContext *av
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;
More information about the MPlayer-cvslog
mailing list