diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-08-13 11:58:18 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-08-14 00:05:36 +0200 |
commit | 658a8bb98867457c47070a571f451622e1a1f3c7 (patch) | |
tree | 3c2ef3e106bfc2388adcbc0cb3526ce7459f7099 /libavcodec/vc1.c | |
parent | eb8b325202ac9e03a2fcf666f0b346226acf90f2 (diff) | |
download | ffmpeg-658a8bb98867457c47070a571f451622e1a1f3c7.tar.gz |
VC-1: fix reading of custom PAR.
Custom PAR num/denum are coded -1.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r-- | libavcodec/vc1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index 9504238b86..41cc1c8d21 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -485,8 +485,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) if(ar && ar < 14){ v->s.avctx->sample_aspect_ratio = ff_vc1_pixel_aspect[ar]; }else if(ar == 15){ - w = get_bits(gb, 8); - h = get_bits(gb, 8); + w = get_bits(gb, 8) + 1; + h = get_bits(gb, 8) + 1; v->s.avctx->sample_aspect_ratio = (AVRational){w, h}; } av_log(v->s.avctx, AV_LOG_DEBUG, "Aspect: %i:%i\n", v->s.avctx->sample_aspect_ratio.num, v->s.avctx->sample_aspect_ratio.den); |