Ticket #1741: wrong_video_id.diff

File wrong_video_id.diff, 1.4 KB (added by poltsy@…, 16 years ago)

workaround

  • libmpdemux/demux_lavf.c

     
    461461    }
    462462    if (stream_type) {
    463463        AVCodec *avc = avcodec_find_decoder(codec->codec_id);
    464         mp_msg(MSGT_DEMUX, MSGL_INFO, "[lavf] stream %d: %s (%s), -%cid %d", i, stream_type, avc ? avc->name : "unknown", *stream_type, stream_id);
     464        if (*stream_type == 'v')
     465            mp_msg(MSGT_DEMUX, MSGL_INFO, "[lavf] stream %d: %s (%s), -%cid %d", i, stream_type, avc ? avc->name : "unknown", *stream_type, i);
     466        else
     467            mp_msg(MSGT_DEMUX, MSGL_INFO, "[lavf] stream %d: %s (%s), -%cid %d", i, stream_type, avc ? avc->name : "unknown", *stream_type, stream_id);
    465468        if (lang && lang->value && *stream_type != 'v')
    466469            mp_msg(MSGT_DEMUX, MSGL_INFO, ", -%clang %s", *stream_type, lang->value);
    467470        if (title && title->value)
  • libmpdemux/demuxer.c

     
    356356        demuxer->v_streams[id] = sh;
    357357        sh->vid = vid;
    358358        sh->ds = demuxer->video;
    359         mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_VIDEO_ID=%d\n", vid);
     359        mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_VIDEO_ID=%d\n", id);
    360360    }
    361361    return demuxer->v_streams[id];
    362362}