Ticket #10030: iff.patch

File iff.patch, 749 bytes (added by ami_stuff, 4 years ago)
  • libavformat/iff.c

    diff --git a/libavformat/iff.c b/libavformat/iff.c
    index b8e8bffe03..704e1ebf66 100644
    a b static int iff_read_header(AVFormatContext *s)  
    633633        /* DSD tags */
    634634
    635635        case MKTAG('F','V','E','R'):
     636            if (st->codecpar->codec_tag == ID_DSD || st->codecpar->codec_tag == ID_DST) {
    636637            if (data_size < 4)
    637638                return AVERROR_INVALIDDATA;
    638639            version = avio_rb32(pb);
    639640            av_log(s, AV_LOG_DEBUG, "DSIFF v%d.%d.%d.%d\n",version >> 24, (version >> 16) & 0xFF, (version >> 8) & 0xFF, version & 0xFF);
    640641            st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
     642            }
    641643            break;
    642644
    643645        case MKTAG('D','I','I','N'):