Revision d509c743 libavformat/dv.c

View differences:

libavformat/dv.c
322 322
    uint8_t *ppcm[4] = {0};
323 323

  
324 324
    if (buf_size < DV_PROFILE_BYTES ||
325
        !(c->sys = dv_frame_profile(buf)) ||
325
        !(c->sys = dv_frame_profile(c->sys, buf, buf_size)) ||
326 326
        buf_size < c->sys->frame_size) {
327 327
          return -1;   /* Broken frame, or not enough data */
328 328
    }
......
421 421
        url_fseek(s->pb, -DV_PROFILE_BYTES, SEEK_CUR) < 0)
422 422
        return AVERROR(EIO);
423 423

  
424
    c->dv_demux->sys = dv_frame_profile(c->buf);
424
    c->dv_demux->sys = dv_frame_profile(c->dv_demux->sys, c->buf, DV_PROFILE_BYTES);
425 425
    if (!c->dv_demux->sys) {
426 426
        av_log(s, AV_LOG_ERROR, "Can't determine profile of DV input stream.\n");
427 427
        return -1;

Also available in: Unified diff