提交 efea8528 编写于 作者: M Michael Niedermayer

parse all QIS values (we still ignore them though ...)

Originally committed as revision 5778 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 a14ab4e4
...@@ -229,6 +229,8 @@ typedef struct Vp3DecodeContext { ...@@ -229,6 +229,8 @@ typedef struct Vp3DecodeContext {
DSPContext dsp; DSPContext dsp;
int flipped_image; int flipped_image;
int qis[3];
int nqis;
int quality_index; int quality_index;
int last_quality_index; int last_quality_index;
...@@ -2376,9 +2378,13 @@ static int vp3_decode_frame(AVCodecContext *avctx, ...@@ -2376,9 +2378,13 @@ static int vp3_decode_frame(AVCodecContext *avctx,
if (!s->theora) if (!s->theora)
skip_bits(&gb, 1); skip_bits(&gb, 1);
s->last_quality_index = s->quality_index; s->last_quality_index = s->quality_index;
s->quality_index = get_bits(&gb, 6);
if (s->theora >= 0x030200) s->nqis=0;
skip_bits1(&gb); do{
s->qis[s->nqis++]= get_bits(&gb, 6);
} while(s->theora >= 0x030200 && s->nqis<3 && get_bits1(&gb));
s->quality_index= s->qis[0];
if (s->avctx->debug & FF_DEBUG_PICT_INFO) if (s->avctx->debug & FF_DEBUG_PICT_INFO)
av_log(s->avctx, AV_LOG_INFO, " VP3 %sframe #%d: Q index = %d\n", av_log(s->avctx, AV_LOG_INFO, " VP3 %sframe #%d: Q index = %d\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册