Revision 29644cb5 libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
2084 2084
    int slice_count;
2085 2085
    int swap_uv;//indicate VCR2
2086 2086
    int save_aspect_info;
2087
    int save_width, save_height;
2087 2088
    AVRational frame_rate_ext;       ///< MPEG-2 specific framerate modificator
2088 2089

  
2089 2090
} Mpeg1Context;
......
2138 2139
        (s1->mpeg_enc_ctx_allocated == 0)||
2139 2140
        avctx->coded_width  != s->width ||
2140 2141
        avctx->coded_height != s->height||
2142
        s1->save_width != s->width ||
2143
        s1->save_height != s->height ||
2141 2144
        s1->save_aspect_info != s->aspect_ratio_info||
2142 2145
        0)
2143 2146
    {
......
2155 2158
        avcodec_set_dimensions(avctx, s->width, s->height);
2156 2159
        avctx->bit_rate = s->bit_rate;
2157 2160
        s1->save_aspect_info = s->aspect_ratio_info;
2161
        s1->save_width = s->width;
2162
        s1->save_height = s->height;
2158 2163

  
2159 2164
     //low_delay may be forced, in this case we will have B frames
2160 2165
     //that behave like P frames

Also available in: Unified diff