Ticket #5016: avformatdecoder.diff

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

Temporary fix

Line 
1*** ./tr2/mythtv/libs/libmythtv/avformatdecoder.cpp 2008-03-27 01:43:54.000000000 +0600
2--- ./trunk/mythtv/libs/libmythtv/avformatdecoder.cpp 2008-03-27 01:17:34.000000000 +0600
3***************
4*** 1482,1487 ****
5--- 1480,1496 ----
6 if (CODEC_ID_H264 == enc->codec_id && enc->bit_rate == 0)
7 enc->bit_rate = 500000;
8 // HACK -- end
9+
10+ // HACK -- begin
11+ // strange stream with 0 bitrate
12+ if (enc->bit_rate == 0)
13+ {
14+ VERBOSE(VB_IMPORTANT,
15+ LOC + QString("Stream #%1 has an unknown video "
16+ "codec id, skipping.").arg(i));
17+ continue;
18+ }
19+ // HACK -- end
20
21 bitrate += enc->bit_rate;
22 if (novideo)