aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorJason Garrett-Glaser <jason@x264.com>2011-07-06 07:58:50 -0700
committerJason Garrett-Glaser <jason@x264.com>2011-07-08 16:12:12 -0700
commitef0c5948018216aadae18e5626ed0b1b95668f4f (patch)
tree5e7571d688be2b9b78a99b2b763aa72c05416a0a /libavcodec/h264.h
parent5136ba7c690f50ebe12bba6e3320a18e1d4fd936 (diff)
downloadffmpeg-ef0c5948018216aadae18e5626ed0b1b95668f4f.tar.gz
H.264: merge fill_rectangle into P-SKIP MV prediction, to match B-SKIP
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index d34e6db573..e88005aa3e 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -770,7 +770,7 @@ static av_always_inline int get_chroma_qp(H264Context *h, int t, int qscale){
return h->pps.chroma_qp_table[t][qscale];
}
-static av_always_inline void pred_pskip_motion(H264Context * const h, int * const mx, int * const my);
+static av_always_inline void pred_pskip_motion(H264Context * const h);
static void fill_decode_neighbors(H264Context *h, int mb_type){
MpegEncContext * const s = &h->s;
@@ -1327,13 +1327,10 @@ static void av_unused decode_mb_skip(H264Context *h){
}
else
{
- int mx, my;
mb_type|= MB_TYPE_16x16|MB_TYPE_P0L0|MB_TYPE_P1L0|MB_TYPE_SKIP;
fill_decode_neighbors(h, mb_type);
- pred_pskip_motion(h, &mx, &my);
- fill_rectangle(&h->ref_cache[0][scan8[0]], 4, 4, 8, 0, 1);
- fill_rectangle( h->mv_cache[0][scan8[0]], 4, 4, 8, pack16to32(mx,my), 4);
+ pred_pskip_motion(h);
}
write_back_motion(h, mb_type);