Revision 72415b2a libavformat/dvenc.c

View differences:

libavformat/dvenc.c
239 239
    reqasize = 4 * dv_audio_frame_size(c->sys, c->frames);
240 240

  
241 241
    switch (st->codec->codec_type) {
242
    case CODEC_TYPE_VIDEO:
242
    case AVMEDIA_TYPE_VIDEO:
243 243
        /* FIXME: we have to have more sensible approach than this one */
244 244
        if (c->has_video)
245 245
            av_log(st->codec, AV_LOG_ERROR, "Can't process DV frame #%d. Insufficient audio data or severe sync problem.\n", c->frames);
......
247 247
        memcpy(*frame, data, c->sys->frame_size);
248 248
        c->has_video = 1;
249 249
        break;
250
    case CODEC_TYPE_AUDIO:
250
    case AVMEDIA_TYPE_AUDIO:
251 251
        for (i = 0; i < c->n_ast && st != c->ast[i]; i++);
252 252

  
253 253
          /* FIXME: we have to have more sensible approach than this one */
......
299 299
    /* We have to sort out where audio and where video stream is */
300 300
    for (i=0; i<s->nb_streams; i++) {
301 301
        switch (s->streams[i]->codec->codec_type) {
302
        case CODEC_TYPE_VIDEO:
302
        case AVMEDIA_TYPE_VIDEO:
303 303
            if (vst) return NULL;
304 304
            vst = s->streams[i];
305 305
            break;
306
        case CODEC_TYPE_AUDIO:
306
        case AVMEDIA_TYPE_AUDIO:
307 307
            if (c->n_ast > 1) return NULL;
308 308
            c->ast[c->n_ast++] = s->streams[i];
309 309
            break;

Also available in: Unified diff