aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-18 00:20:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-18 00:20:44 +0000
commit44a5e7b64c1e12b373aca3266d086de4e50c94d3 (patch)
tree59111b3cac8bdcd7be720c943e4c29a7b093e7d2 /libavcodec/h264.c
parentb6303e6d2a267a06500c58bd4b6a02683ad6388b (diff)
downloadffmpeg-44a5e7b64c1e12b373aca3266d086de4e50c94d3.tar.gz
Move the qp check to skip the loop filter up.
Originally committed as revision 21274 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c3
1 files changed, 2 insertions, 1 deletions
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]);