comparison 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
comparison
equal deleted inserted replaced
376:ba9c3b8088c0 377:0d73175fbded
1586 } 1586 }
1587 1587
1588 buf_ptr = buf; 1588 buf_ptr = buf;
1589 buf_end = buf + buf_size; 1589 buf_end = buf + buf_size;
1590 1590
1591 if (s->repeat_field % 2 == 1) { 1591 if (s->repeat_field % 2 == 1 && avctx->repeat_pict) {
1592 s->repeat_field++; 1592 s->repeat_field++;
1593 //fprintf(stderr,"\nRepeating last frame: %d -> %d! pict: %d %d", avctx->frame_number-1, avctx->frame_number, 1593 //fprintf(stderr,"\nRepeating last frame: %d -> %d! pict: %d %d", avctx->frame_number-1, avctx->frame_number,
1594 // s2->picture_number, s->repeat_field); 1594 // s2->picture_number, s->repeat_field);
1595 *data_size = sizeof(AVPicture); 1595 *data_size = sizeof(AVPicture);
1596 goto the_end; 1596 goto the_end;