diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-12 21:12:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-01 02:57:16 +0100 |
commit | 8abdf46b380562d4716a78174076b1e67ae1f8da (patch) | |
tree | ed30f49d70cae2e8e11e3d973daafb14ebb9ab18 /libavcodec/dxva2_vc1.c | |
parent | 46b06bd894f0d69ce137503a06249e8a9bb8f840 (diff) | |
download | ffmpeg-8abdf46b380562d4716a78174076b1e67ae1f8da.tar.gz |
dxva2_vc1: set refdist value according to spec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dxva2_vc1.c')
-rw-r--r-- | libavcodec/dxva2_vc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c index 2e9a00eb07..6ff5765f0c 100644 --- a/libavcodec/dxva2_vc1.c +++ b/libavcodec/dxva2_vc1.c @@ -122,7 +122,7 @@ static void fill_picture_parameters(AVCodecContext *avctx, (v->range_mapuv_flag << 3) | (v->range_mapuv ); pp->bPicBinPB = 0; - pp->bMV_RPS = 0; + pp->bMV_RPS = (v->fcm == ILACE_FIELD && pp->bPicBackwardPrediction) ? v->refdist + 9 : 0; pp->bReservedBits = 0; if (s->picture_structure == PICT_FRAME) { pp->wBitstreamFcodes = v->lumscale; |