Mercurial > libavcodec.hg
diff mpeg12.c @ 377:0d73175fbded libavcodec
- repeat_pict added to AVCodecContext to signal if the decoder must repeat
frames from 3:2 pulldown sources.
- repeat_pict honoured by MPEG-1/2 decoder.
author | pulento |
---|---|
date | Sun, 12 May 2002 02:55:48 +0000 |
parents | abbed9f28d75 |
children | e6b64bc3bc87 |
line wrap: on
line diff
--- a/mpeg12.c Sat May 11 23:42:16 2002 +0000 +++ b/mpeg12.c Sun May 12 02:55:48 2002 +0000 @@ -1588,7 +1588,7 @@ buf_ptr = buf; buf_end = buf + buf_size; - if (s->repeat_field % 2 == 1) { + if (s->repeat_field % 2 == 1 && avctx->repeat_pict) { s->repeat_field++; //fprintf(stderr,"\nRepeating last frame: %d -> %d! pict: %d %d", avctx->frame_number-1, avctx->frame_number, // s2->picture_number, s->repeat_field);