提交 7a96cd31 编写于 作者: K Kostya Shishkov

VC-1 display dimensions should affect coded dimensions only (I think)

Originally committed as revision 16578 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 e9ca5f08
...@@ -1007,8 +1007,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) ...@@ -1007,8 +1007,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
if(get_bits1(gb)) { //Display Info - decoding is not affected by it if(get_bits1(gb)) { //Display Info - decoding is not affected by it
int w, h, ar = 0; int w, h, ar = 0;
av_log(v->s.avctx, AV_LOG_DEBUG, "Display extended info:\n"); av_log(v->s.avctx, AV_LOG_DEBUG, "Display extended info:\n");
v->s.avctx->width = v->s.width = w = get_bits(gb, 14) + 1; v->s.avctx->coded_width = w = get_bits(gb, 14) + 1;
v->s.avctx->height = v->s.height = h = get_bits(gb, 14) + 1; v->s.avctx->coded_height = h = get_bits(gb, 14) + 1;
av_log(v->s.avctx, AV_LOG_DEBUG, "Display dimensions: %ix%i\n", w, h); av_log(v->s.avctx, AV_LOG_DEBUG, "Display dimensions: %ix%i\n", w, h);
if(get_bits1(gb)) if(get_bits1(gb))
ar = get_bits(gb, 4); ar = get_bits(gb, 4);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册