Revision 01329150

View differences:

libavcodec/4xm.c
791 791
        if(decode_i_frame(f, buf, frame_size) < 0)
792 792
            return -1;
793 793
    }else if(frame_4cc == AV_RL32("pfrm") || frame_4cc == AV_RL32("pfr2")){
794
        if(!f->last_picture.data[0]){
795
            f->last_picture.reference= 1;
796
            if(avctx->get_buffer(avctx, &f->last_picture) < 0){
797
                av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
798
                return -1;
799
            }
800
        }
801

  
794 802
        p->pict_type= FF_P_TYPE;
795 803
        if(decode_p_frame(f, buf, frame_size) < 0)
796 804
            return -1;

Also available in: Unified diff