Mercurial > libavcodec.hg
diff h263dec.c @ 887:19f5b8b7c6d5 libavcodec
fixing aspect
author | michaelni |
---|---|
date | Mon, 25 Nov 2002 09:23:19 +0000 |
parents | 35d28522a1c5 |
children | 4513713d664a |
line wrap: on
line diff
--- a/h263dec.c Sat Nov 23 10:58:05 2002 +0000 +++ b/h263dec.c Mon Nov 25 09:23:19 2002 +0000 @@ -495,10 +495,10 @@ /* 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 */