Ticket #7409: mythtv_dts_skip_dts_hd.diff

File mythtv_dts_skip_dts_hd.diff, 812 bytes (added by tralph11@…, 15 years ago)

properly discard DTS HD extenstions frames

  • libs/libmythtv/avformatdecoder.cpp

     
    43684368    if (dts)
    43694369    {
    43704370        enc_len = dts_syncinfo(data, &flags, &sample_rate, &bit_rate);
     4371        if (enc_len < 0)
     4372            return enc_len;
    43714373        int rate, sfreq, nblks;
    43724374        dts_decode_header(data, &rate, &nblks, &sfreq);
    43734375        nr_samples = nblks * 32;
     
    44844486               (indata_ptr[2] << 8)  | (indata_ptr[3]));
    44854487
    44864488    if (id != 0x7ffe8001)
     4489    {
     4490        if (id == 0x64582025)
     4491            VERBOSE(VB_IMPORTANT, LOC + QString("Skipping DTS HD extension"));
     4492
    44874493        return -1;
     4494    }
    44884495
    44894496    int ftype = indata_ptr[4] >> 7;
    44904497