From 44a5e7b64c1e12b373aca3266d086de4e50c94d3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 18 Jan 2010 00:20:44 +0000 Subject: Move the qp check to skip the loop filter up. Originally committed as revision 21274 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/h264.c') diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3f44d521fc..8d7478c0f1 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2184,7 +2184,8 @@ static void loop_filter(H264Context *h){ uvlinesize = h->mb_uvlinesize = s->uvlinesize; } backup_mb_border(h, dest_y, dest_cb, dest_cr, linesize, uvlinesize, !is_complex); - fill_filter_caches(h, mb_type); //FIXME don't fill stuff which isn't used by filter_mb + if(fill_filter_caches(h, mb_type) < 0) + continue; h->chroma_qp[0] = get_chroma_qp(h, 0, s->current_picture.qscale_table[mb_xy]); h->chroma_qp[1] = get_chroma_qp(h, 1, s->current_picture.qscale_table[mb_xy]); -- cgit v1.2.3