Revision 69a28f3e libavcodec/h264.c

View differences:

libavcodec/h264.c
2200 2200
    h->chroma_qp[1] = get_chroma_qp(h, 1, s->qscale);
2201 2201
}
2202 2202

  
2203
static void predict_field_decoding_flag(H264Context *h){
2204
    MpegEncContext * const s = &h->s;
2205
    const int mb_xy= s->mb_x + s->mb_y*s->mb_stride;
2206
    int mb_type = (h->slice_table[mb_xy-1] == h->slice_num)
2207
                ? s->current_picture.mb_type[mb_xy-1]
2208
                : (h->slice_table[mb_xy-s->mb_stride] == h->slice_num)
2209
                ? s->current_picture.mb_type[mb_xy-s->mb_stride]
2210
                : 0;
2211
    h->mb_mbaff = h->mb_field_decoding_flag = IS_INTERLACED(mb_type) ? 1 : 0;
2212
}
2213

  
2203 2214
static int decode_slice(struct AVCodecContext *avctx, void *arg){
2204 2215
    H264Context *h = *(void**)arg;
2205 2216
    MpegEncContext * const s = &h->s;

Also available in: Unified diff