Ticket #5016: avformatdecoder.2.diff

File avformatdecoder.2.diff, 925 bytes (added by dluzin@…, 18 years ago)

This one should be readable

  • libs/libmythtv/avformatdecoder.cpp

    ================================================================================
     
    14821482                if (CODEC_ID_H264 == enc->codec_id && enc->bit_rate == 0)
    14831483                    enc->bit_rate = 500000;
    14841484                // HACK -- end
     1485                 
     1486                // HACK -- begin
     1487                // strange stream with 0 bitrate
     1488                if (enc->bit_rate == 0)
     1489                {
     1490                    VERBOSE(VB_IMPORTANT,
     1491                            LOC + QString("Stream #%1 has an unknown video "
     1492                                          "codec id, skipping.").arg(i));
     1493                    continue;
     1494                }
     1495                // HACK -- end
    14851496
    14861497                bitrate += enc->bit_rate;
    14871498                if (novideo)