Mercurial > libavcodec.hg
diff h263dec.c @ 1548:dd544554ed42 libavcodec
AVRational
sample_aspect_ratio
aspect ratio in JPEG JFIF is SAR not DAR !
removed nonsense SAR guessing code
various related cleanups
bugs?
author | michael |
---|---|
date | Mon, 20 Oct 2003 20:23:46 +0000 |
parents | 576861d6343a |
children | 3d1d0490e5a6 |
line wrap: on
line diff
--- a/h263dec.c Mon Oct 20 10:33:13 2003 +0000 +++ b/h263dec.c Mon Oct 20 20:23:46 2003 +0000 @@ -393,7 +393,6 @@ MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; - float new_aspect; #ifdef PRINT_FRAME_TIME uint64_t time= rdtsc(); @@ -602,13 +601,8 @@ /* and other parameters. So then we could init the picture */ /* FIXME: By the way H263 decoder is evolving it should have */ /* an H263EncContext */ - if(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) { + if ( s->width != avctx->width || s->height != avctx->height) { /* H.263 could change picture size any time */ ParseContext pc= s->parse_context; //FIXME move these demuxng hack to avformat s->parse_context.buffer=0; @@ -618,7 +612,6 @@ if (!s->context_initialized) { avctx->width = s->width; avctx->height = s->height; - avctx->aspect_ratio= new_aspect; goto retry; }