diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2010-01-30 17:01:45 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2010-01-30 17:01:45 +0300 |
commit | ceb54ef127caf7ce1c03545c98a8a7e47e7646e3 (patch) | |
tree | f1d961e43eaba198cad7624417a6a97c4dd0f89a /src/filters/transform/mpcvideodec | |
parent | 5e7876c43b72a6f74ce682510ca6e7f0f02ee666 (diff) |
Fixed : send raw qscale in DXVA Mpeg2
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1580 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpcvideodec')
-rw-r--r-- | src/filters/transform/mpcvideodec/ffmpeg/libavcodec/mpeg12.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/filters/transform/mpcvideodec/ffmpeg/libavcodec/mpeg12.c b/src/filters/transform/mpcvideodec/ffmpeg/libavcodec/mpeg12.c index 27f55c93c..05c903eb0 100644 --- a/src/filters/transform/mpcvideodec/ffmpeg/libavcodec/mpeg12.c +++ b/src/filters/transform/mpcvideodec/ffmpeg/libavcodec/mpeg12.c @@ -1641,7 +1641,13 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y, ff_mpeg1_clean_buffers(s);
s->interlaced_dct = 0;
- s->qscale = get_qscale(s);
+ // ==> Start patch MPC
+ // DXVA need raw syntax element
+ if (s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)
+ s->qscale = get_bits(&s->gb, 5);
+ else
+ s->qscale = get_qscale(s);
+ // <== End patch MPC
if(s->qscale == 0){
av_log(s->avctx, AV_LOG_ERROR, "qscale == 0\n");
|