Revision ce5e49b0 libavcodec/4xm.c

View differences:

libavcodec/4xm.c
780 780
    }
781 781

  
782 782
    if(frame_4cc == AV_RL32("ifr2")){
783
        p->pict_type= FF_I_TYPE;
783
        p->pict_type= AV_PICTURE_TYPE_I;
784 784
        if(decode_i2_frame(f, buf-4, frame_size) < 0)
785 785
            return -1;
786 786
    }else if(frame_4cc == AV_RL32("ifrm")){
787
        p->pict_type= FF_I_TYPE;
787
        p->pict_type= AV_PICTURE_TYPE_I;
788 788
        if(decode_i_frame(f, buf, frame_size) < 0)
789 789
            return -1;
790 790
    }else if(frame_4cc == AV_RL32("pfrm") || frame_4cc == AV_RL32("pfr2")){
......
796 796
            }
797 797
        }
798 798

  
799
        p->pict_type= FF_P_TYPE;
799
        p->pict_type= AV_PICTURE_TYPE_P;
800 800
        if(decode_p_frame(f, buf, frame_size) < 0)
801 801
            return -1;
802 802
    }else if(frame_4cc == AV_RL32("snd_")){
......
805 805
        av_log(avctx, AV_LOG_ERROR, "ignoring unknown chunk length:%d\n", buf_size);
806 806
    }
807 807

  
808
    p->key_frame= p->pict_type == FF_I_TYPE;
808
    p->key_frame= p->pict_type == AV_PICTURE_TYPE_I;
809 809

  
810 810
    *picture= *p;
811 811
    *data_size = sizeof(AVPicture);

Also available in: Unified diff