Revision 6f91bcd1 libavcodec/h263dec.c

View differences:

libavcodec/h263dec.c
45 45
    case CODEC_ID_MPEG4:
46 46
        s->time_increment_bits = 4; /* default value for broken headers */
47 47
        s->h263_pred = 1;
48
        s->has_b_frames = 1;
48 49
        break;
49 50
    case CODEC_ID_MSMPEG4:
50 51
        s->h263_msmpeg4 = 1;
......
219 220

  
220 221
    MPV_frame_end(s);
221 222
    
222
    pict->data[0] = s->current_picture[0];
223
    pict->data[1] = s->current_picture[1];
224
    pict->data[2] = s->current_picture[2];
223
    if(s->pict_type==B_TYPE){
224
        pict->data[0] = s->current_picture[0];
225
        pict->data[1] = s->current_picture[1];
226
        pict->data[2] = s->current_picture[2];
227
    } else {
228
        pict->data[0] = s->last_picture[0];
229
        pict->data[1] = s->last_picture[1];
230
        pict->data[2] = s->last_picture[2];
231
    }
225 232
    pict->linesize[0] = s->linesize;
226 233
    pict->linesize[1] = s->linesize / 2;
227 234
    pict->linesize[2] = s->linesize / 2;

Also available in: Unified diff