Ticket #2556: ticket2556-neil-murphy-stream-select.diff

File ticket2556-neil-murphy-stream-select.diff, 747 bytes (added by Stuart Auchterlonie, 13 years ago)

Neil Murphey's patch to select the video stream by highest component tag

  • libs/libmythtv/avformatdecoder.cpp

     
    13511351                enc->decode_cc_dvd  = decode_cc_dvd;
    13521352
    13531353                // Set the default stream to the stream
    1354                 // with the lowest component tag.
     1354                // with the highest component tag.
    13551355                if (selectedVideoIndex < 0 ||
    1356                     ic->streams[i]->component_tag <
     1356                    ic->streams[i]->component_tag >
    13571357                    ic->streams[selectedVideoIndex]->component_tag)
    13581358                {
    13591359                    selectedVideoIndex = i;