aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-11-25 09:23:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-11-25 09:23:19 +0000
commit58b0b0dd9337fb93d777965cdd3ec08f6db3fea6 (patch)
tree7eabe09a67f19e5b69a45590de5771b216cb908c /libavcodec/h263dec.c
parentc9f99fef4fbbcaf7bb99bc0a3e9603e781e163ca (diff)
downloadffmpeg-58b0b0dd9337fb93d777965cdd3ec08f6db3fea6.tar.gz
fixing aspect
Originally committed as revision 1273 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 1682f4d289..aa1bdacf85 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -495,10 +495,10 @@ retry:
/* FIXME: By the way H263 decoder is evolving it should have */
/* an H263EncContext */
if(s->aspected_height)
- new_aspect= (float)s->aspected_width / (float)s->aspected_height;
+ new_aspect= s->aspected_width*s->width / (float)(s->height*s->aspected_height);
else
new_aspect=0;
-
+
if ( s->width != avctx->width || s->height != avctx->height
|| ABS(new_aspect - avctx->aspect_ratio) > 0.001) {
/* H.263 could change picture size any time */