Revision b4b167ec libavformat/jvdec.c

View differences:

libavformat/jvdec.c
74 74
    if (!ast || !vst)
75 75
        return AVERROR(ENOMEM);
76 76

  
77
    vst->codec->codec_type  = CODEC_TYPE_VIDEO;
77
    vst->codec->codec_type  = AVMEDIA_TYPE_VIDEO;
78 78
    vst->codec->codec_id    = CODEC_ID_JV;
79 79
    vst->codec->codec_tag   = 0; /* no fourcc */
80 80
    vst->codec->width       = avio_rl16(pb);
......
85 85

  
86 86
    avio_skip(pb, 4);
87 87

  
88
    ast->codec->codec_type  = CODEC_TYPE_AUDIO;
88
    ast->codec->codec_type  = AVMEDIA_TYPE_AUDIO;
89 89
    ast->codec->codec_id    = CODEC_ID_PCM_U8;
90 90
    ast->codec->codec_tag   = 0; /* no fourcc */
91 91
    ast->codec->sample_rate = avio_rl16(pb);
......
151 151
                    return AVERROR(ENOMEM);
152 152
                pkt->stream_index = 0;
153 153
                pkt->pts          = e->timestamp;
154
                pkt->flags       |= PKT_FLAG_KEY;
154
                pkt->flags       |= AV_PKT_FLAG_KEY;
155 155
                return 0;
156 156
            }
157 157
        case JV_VIDEO:
......
170 170
                pkt->stream_index = 1;
171 171
                pkt->pts          = jv->pts;
172 172
                if (jvf->video_type != 1)
173
                    pkt->flags |= PKT_FLAG_KEY;
173
                    pkt->flags |= AV_PKT_FLAG_KEY;
174 174
                return 0;
175 175
            }
176 176
        case JV_PADDING:

Also available in: Unified diff