[Ffmpeg-devel] [PATCH] fast h264 decoding

Reimar Döffinger Reimar.Doeffinger
Wed Jul 13 19:12:30 CEST 2005


Hi,
I created a little patch that finally allows me to play Apples HDTV
trailers realtime, by using -lavdopts fast in mplayer.
It disables the deblocking step when fast is set, for the samples I have
it doesn't make a visual difference, but decoding time goes down from
17.017s to 9.783s.
Please consider it.

Greetings,
Reimar D?ffinger
-------------- next part --------------
--- libavcodec/h264.c	2005-07-03 11:40:27.000000000 +0200
+++ libavcodec/h264.c	2005-07-13 18:56:17.000000000 +0200
@@ -4349,6 +4349,8 @@
             h->slice_beta_offset = get_se_golomb(&s->gb) << 1;
         }
     }
+    if (s->flags2 & CODEC_FLAG2_FAST)
+      h->deblocking_filter = 0;
 
 #if 0 //FMO
     if( h->pps.num_slice_groups > 1  && h->pps.mb_slice_group_map_type >= 3 && h->pps.mb_slice_group_map_type <= 5)



More information about the ffmpeg-devel mailing list