mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
VC-1: fix reading of custom PAR.
Custom PAR num/denum are coded -1. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
eb8b325202
commit
658a8bb988
@ -485,8 +485,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
|
|||||||
if(ar && ar < 14){
|
if(ar && ar < 14){
|
||||||
v->s.avctx->sample_aspect_ratio = ff_vc1_pixel_aspect[ar];
|
v->s.avctx->sample_aspect_ratio = ff_vc1_pixel_aspect[ar];
|
||||||
}else if(ar == 15){
|
}else if(ar == 15){
|
||||||
w = get_bits(gb, 8);
|
w = get_bits(gb, 8) + 1;
|
||||||
h = get_bits(gb, 8);
|
h = get_bits(gb, 8) + 1;
|
||||||
v->s.avctx->sample_aspect_ratio = (AVRational){w, h};
|
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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user