Revision c80340a4

View differences:

libavcodec/avcodec.h
5 5

  
6 6
#define LIBAVCODEC_VERSION_INT 0x000406
7 7
#define LIBAVCODEC_VERSION     "0.4.6"
8
#define LIBAVCODEC_BUILD       4606
9
#define LIBAVCODEC_BUILD_STR   "4606"
8
#define LIBAVCODEC_BUILD       4607
9
#define LIBAVCODEC_BUILD_STR   "4607"
10 10

  
11 11
enum CodecID {
12 12
    CODEC_ID_NONE, 
......
130 130
#define FF_ASPECT_16_9_525 5
131 131
    int gop_size; /* 0 = intra only */
132 132
    enum PixelFormat pix_fmt;  /* pixel format, see PIX_FMT_xxx */
133

  
133
    int repeat_pict; /* set this to 1 if you want the decoder
134
                        to repeat frames for 3:2 pulldown (MPEG-2) */
134 135
    /* if non NULL, 'draw_horiz_band' is called by the libavcodec
135 136
       decoder to draw an horizontal band. It improve cache usage. Not
136 137
       all codecs can do that. You must check the codec capabilities
libavcodec/mpeg12.c
1588 1588
    buf_ptr = buf;
1589 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 1592
        s->repeat_field++;
1593 1593
        //fprintf(stderr,"\nRepeating last frame: %d -> %d! pict: %d %d", avctx->frame_number-1, avctx->frame_number,
1594 1594
        //                                                         s2->picture_number, s->repeat_field);

Also available in: Unified diff