Ticket #287: mpeg1-hack.patch

File mpeg1-hack.patch, 981 bytes (added by danielk, 19 years ago)
  • libs/libmythtv/avformatdecoder.cpp

     
    830830#ifdef USING_XVMC
    831831                if (!using_null_videoout && xvmc_stream_type(enc->codec_id))
    832832                {
     833                    // HACK -- begin
     834                    // Force MPEG2 decoder on MPEG1 streams.
     835                    // Needed for broken transmitters which mark
     836                    // MPEG2 streams as MPEG1 streams, and should
     837                    // be harmless for unbroken ones.
     838                    if (CODEC_ID_MPEG1VIDEO == enc->codec_id)
     839                        enc->codec_id = CODEC_ID_MPEG2VIDEO;
     840                    // HACK -- end
     841
    833842                    MythCodecID mcid;
    834843                    mcid = VideoOutputXv::GetBestSupportedCodec(
    835844                        /* disp dim     */ enc->width, enc->height,