Mercurial > libavcodec.hg
diff vc1.c @ 4466:1dea76bf254f libavcodec
Set codec dimensions if provided by extradata
| author | kostya |
|---|---|
| date | Sat, 03 Feb 2007 06:41:14 +0000 |
| parents | 5c94205a4730 |
| children | a9f64d2a2e69 |
line wrap: on
line diff
--- a/vc1.c Sat Feb 03 06:39:50 2007 +0000 +++ b/vc1.c Sat Feb 03 06:41:14 2007 +0000 @@ -1305,8 +1305,8 @@ if(get_bits1(gb)) { //Display Info - decoding is not affected by it int w, h, ar = 0; av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n"); - w = get_bits(gb, 14) + 1; - h = get_bits(gb, 14) + 1; + v->s.avctx->width = v->s.width = w = get_bits(gb, 14) + 1; + v->s.avctx->height = v->s.height = h = get_bits(gb, 14) + 1; av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h); if(get_bits1(gb)) ar = get_bits(gb, 4);
