Mercurial > libavcodec.hg
changeset 1587:b69b086f5570 libavcodec
100l (SAR is written as height/width instead of width/height in the MPEG1 standard)
author | michael |
---|---|
date | Thu, 30 Oct 2003 19:55:44 +0000 |
parents | 3d1d0490e5a6 |
children | de5e2acd0f80 |
files | mpeg12.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg12.c Thu Oct 30 16:58:49 2003 +0000 +++ b/mpeg12.c Thu Oct 30 19:55:44 2003 +0000 @@ -223,7 +223,7 @@ for(i=1; i<15; i++){ float error= aspect_ratio; if(s->codec_id == CODEC_ID_MPEG1VIDEO || i <=1) - error-= mpeg1_aspect[i]; + error-= 1.0/mpeg1_aspect[i]; else error-= av_q2d(mpeg2_aspect[i])*s->height/s->width; @@ -2278,7 +2278,7 @@ height = get_bits(&s->gb, 12); s->aspect_ratio_info= get_bits(&s->gb, 4); if(s->codec_id == CODEC_ID_MPEG1VIDEO){ - aspect= mpeg1_aspect[s->aspect_ratio_info]; + aspect= 1.0/mpeg1_aspect[s->aspect_ratio_info]; if(aspect!=0.0) avctx->sample_aspect_ratio= av_d2q(aspect, 255); }