# HG changeset patch # User michael # Date 1094520019 0 # Node ID 75b2ff55c97243598e549193b81b16173fcdabf7 # Parent c7408a0158cce4f04329c51ae1960a58ba16e9ea disable direct rendering for h264 until now we did try with dr, and disabled it if more then 1 reference frame was used, but that rarely resulted in dr+h264 and its not guranteed to work as stride may end up different, and remocing CODEC_CAP_DR1 from h264 in ffmpeg isnt correct either as the h264 codec does support it diff -r c7408a0158cc -r 75b2ff55c972 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Tue Sep 07 01:05:56 2004 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Sep 07 01:20:19 2004 +0000 @@ -188,7 +188,7 @@ if(vd_use_slices && (lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) && !do_vis_debug) ctx->do_slices=1; - if(lavc_codec->capabilities&CODEC_CAP_DR1 && !do_vis_debug) + if(lavc_codec->capabilities&CODEC_CAP_DR1 && !do_vis_debug && lavc_codec->id != CODEC_ID_H264) ctx->do_dr1=1; ctx->b_age= ctx->ip_age[0]= ctx->ip_age[1]= 256*256*256*64; ctx->ip_count= ctx->b_count= 0;