[FFmpeg-cvslog] H.264: use fill_rectangle in CABAC decoding

Jason Garrett-Glaser git at videolan.org
Sun Jul 10 04:33:42 CEST 2011


ffmpeg | branch: master | Jason Garrett-Glaser <jason at x264.com> | Wed Jul  6 13:25:13 2011 -0700| [99b6d2c065c3823e77e23cadaf9077ca954b36ff] | committer: Jason Garrett-Glaser

H.264: use fill_rectangle in CABAC decoding

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=99b6d2c065c3823e77e23cadaf9077ca954b36ff
---

 libavcodec/h264_cabac.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c
index 6dacf7a..390a7b6 100644
--- a/libavcodec/h264_cabac.c
+++ b/libavcodec/h264_cabac.c
@@ -1818,8 +1818,7 @@ static av_always_inline void decode_cabac_luma_residual( H264Context *h, const u
                     }
                 }
             } else {
-                uint8_t * const nnz= &h->non_zero_count_cache[ scan8[4*i8x8+16*p] ];
-                nnz[0] = nnz[1] = nnz[8] = nnz[9] = 0;
+                fill_rectangle(&h->non_zero_count_cache[scan8[4*i8x8+16*p]], 2, 2, 8, 0, 1);
             }
         }
     }



More information about the ffmpeg-cvslog mailing list