Mercurial > libavcodec.hg
comparison vc1.c @ 4401:003b8c6dd756 libavcodec
Off-by-one error fix
author | kostya |
---|---|
date | Wed, 24 Jan 2007 17:49:26 +0000 |
parents | b78c1074a9cc |
children | 43f4d0d7672c |
comparison
equal
deleted
inserted
replaced
4400:b78c1074a9cc | 4401:003b8c6dd756 |
---|---|
1281 return -1; | 1281 return -1; |
1282 } | 1282 } |
1283 if(get_bits1(gb)) { //Display Info - decoding is not affected by it | 1283 if(get_bits1(gb)) { //Display Info - decoding is not affected by it |
1284 int w, h, ar = 0; | 1284 int w, h, ar = 0; |
1285 av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n"); | 1285 av_log(v->s.avctx, AV_LOG_INFO, "Display extended info:\n"); |
1286 w = get_bits(gb, 14); | 1286 w = get_bits(gb, 14) + 1; |
1287 h = get_bits(gb, 14); | 1287 h = get_bits(gb, 14) + 1; |
1288 av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h); | 1288 av_log(v->s.avctx, AV_LOG_INFO, "Display dimensions: %ix%i\n", w, h); |
1289 //TODO: store aspect ratio in AVCodecContext | 1289 //TODO: store aspect ratio in AVCodecContext |
1290 if(get_bits1(gb)) | 1290 if(get_bits1(gb)) |
1291 ar = get_bits(gb, 4); | 1291 ar = get_bits(gb, 4); |
1292 if(ar == 15) { | 1292 if(ar == 15) { |