comparison 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
comparison
equal deleted inserted replaced
4465:5c94205a4730 4466:1dea76bf254f
1303 return -1; 1303 return -1;
1304 } 1304 }
1305 if(get_bits1(gb)) { //Display Info - decoding is not affected by it 1305 if(get_bits1(gb)) { //Display Info - decoding is not affected by it
1306 int w, h, ar = 0; 1306 int w, h, ar = 0;
1307 av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n"); 1307 av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n");
1308 w = get_bits(gb, 14) + 1; 1308 v->s.avctx->width = v->s.width = w = get_bits(gb, 14) + 1;
1309 h = get_bits(gb, 14) + 1; 1309 v->s.avctx->height = v->s.height = h = get_bits(gb, 14) + 1;
1310 av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h); 1310 av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h);
1311 if(get_bits1(gb)) 1311 if(get_bits1(gb))
1312 ar = get_bits(gb, 4); 1312 ar = get_bits(gb, 4);
1313 if(ar && ar < 14){ 1313 if(ar && ar < 14){
1314 v->s.avctx->sample_aspect_ratio = vc1_pixel_aspect[ar]; 1314 v->s.avctx->sample_aspect_ratio = vc1_pixel_aspect[ar];