[FFmpeg-cvslog] dxva2_vc1: set refdist value according to spec

Hendrik Leppkes git at videolan.org
Wed Jan 1 03:05:11 CET 2014


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Thu Dec 12 21:12:48 2013 +0100| [8abdf46b380562d4716a78174076b1e67ae1f8da] | committer: Michael Niedermayer

dxva2_vc1: set refdist value according to spec

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8abdf46b380562d4716a78174076b1e67ae1f8da
---

 libavcodec/dxva2_vc1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c
index 2e9a00e..6ff5765 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;



More information about the ffmpeg-cvslog mailing list