Ticket #1104: ac3enc.patch

File ac3enc.patch, 723 bytes (added by cizek@…, 12 years ago)

Possible fix for bad re-encoding

  • mythtv/libs/libmyth/audiooutputdigitalencoder.cpp

    diff -r -u -X diff.exclude myth.15740.0203c/mythtv/libs/libmyth/audiooutputdigitalencoder.cpp myth.15740.0203d/mythtv/libs/libmyth/audiooutputdigitalencoder.cpp
     
    239239#ifdef ENABLE_AC3_DECODER
    240240        enc_len = ac3_sync(
    241241            data + 8, &flags, &sample_rate, &bit_rate, (int*)&block_len);
     242        // ac3_sync returns block_len = 1536, which doesn't work
     243        block_len = MAX_AC3_FRAME_SIZE;
    242244#else
    243245        enc_len = a52_syncinfo(data + 8, &flags, &sample_rate, &bit_rate);
    244246        block_len = MAX_AC3_FRAME_SIZE;