summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorJason Garrett-Glaser <[email protected]>2011-06-22 02:05:14 -0700
committerMichael Niedermayer <[email protected]>2011-06-23 00:17:03 +0200
commit7a6e47b99dfa669fa108058868ba06263e78f801 (patch)
tree3401d45627cea8f64feb02e82479a41f4f53d1cc /libavcodec/h264.c
parentf84c349b3b765f8d5c7a79a69ef9f8bb23cbfd83 (diff)
H.264: fix 4:4:4 + deblocking + MBAFF
(cherry picked from commit 7c9079ab4cf0bcf34103fc9c5e49ec1fd7dd390c)
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 419f7c5b84..3b7ed58933 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3303,8 +3303,8 @@ static void loop_filter(H264Context *h, int start_x, int end_x){
uvlinesize = h->mb_uvlinesize = s->uvlinesize * 2;
if(mb_y&1){ //FIXME move out of this function?
dest_y -= s->linesize*15;
- dest_cb-= s->uvlinesize*7;
- dest_cr-= s->uvlinesize*7;
+ dest_cb-= s->uvlinesize*((8 << CHROMA444)-1);
+ dest_cr-= s->uvlinesize*((8 << CHROMA444)-1);
}
} else {
linesize = h->mb_linesize = s->linesize;