diff options
author | Andreas Öman <andreas@olebyn.nu> | 2007-06-03 11:44:43 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2007-06-03 11:44:43 +0000 |
commit | 83b3401731179a87ae20ceb70e78f3bcb719370d (patch) | |
tree | b4cce2eb92e04d98340e1792dd73c4d0bed255d4 /libavcodec/h264.c | |
parent | b91811af83130b0ef001b01f0919c6ffd92b3479 (diff) | |
download | ffmpeg-streaming-83b3401731179a87ae20ceb70e78f3bcb719370d.zip ffmpeg-streaming-83b3401731179a87ae20ceb70e78f3bcb719370d.tar.gz |
filter_mb_fast() doesn't handle h->deblocking_filter==2 (skip slice edges), so delegate that case to filter_mb().
Patch by Andreas Öman [andreas at olebyn dot nu].
Originally committed as revision 9180 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index ab61a8c..57531d7 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -6665,13 +6665,16 @@ static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, int mb_xy, mb_type; int qp, qp0, qp1, qpc, qpc0, qpc1, qp_thresh; - if(mb_x==0 || mb_y==0 || !s->dsp.h264_loop_filter_strength) { + mb_xy = mb_x + mb_y*s->mb_stride; + + if(mb_x==0 || mb_y==0 || !s->dsp.h264_loop_filter_strength || + (h->deblocking_filter == 2 && (h->slice_table[mb_xy] != h->slice_table[h->top_mb_xy] || + h->slice_table[mb_xy] != h->slice_table[mb_xy - 1]))) { filter_mb(h, mb_x, mb_y, img_y, img_cb, img_cr, linesize, uvlinesize); return; } assert(!FRAME_MBAFF); - mb_xy = mb_x + mb_y*s->mb_stride; mb_type = s->current_picture.mb_type[mb_xy]; qp = s->current_picture.qscale_table[mb_xy]; qp0 = s->current_picture.qscale_table[mb_xy-1]; |