Ticket #11882: mythtvgitdiff-master-AVD-SPS.txt

File mythtvgitdiff-master-AVD-SPS.txt, 624 bytes (added by blm-ubunet@…, 11 years ago)

H264 must start with SPS

Line 
1diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
2index 3a42b40..d5f9247 100644
3--- a/mythtv/libs/libmythtv/avformatdecoder.cpp
4+++ b/mythtv/libs/libmythtv/avformatdecoder.cpp
5@@ -3145,7 +3145,8 @@ int AvFormatDecoder::H264PreProcessPkt(AVStream *stream, AVPacket *pkt)
6     {
7         buf += m_h264_parser->addBytes(buf, buf_end - buf, 0);
8 
9-        if (m_h264_parser->stateChanged())
10+        // if (m_h264_parser->stateChanged())
11+        if ( m_h264_parser->seen_SPS())
12         {
13             if (m_h264_parser->FieldType() != H264Parser::FIELD_BOTTOM)
14             {
15