Ticket #3813: h264-capture.patch
| File h264-capture.patch, 1.0 KB (added by , 18 years ago) |
|---|
-
dtvrecorder.cpp
old new 354 371 */ 355 372 bool DTVRecorder::FindH264Keyframes(const TSPacket* tspacket) 356 373 { 357 if (!tspacket->HasPayload()) 358 return false; 374 bool haveBufferedData = !_payload_buffer.empty(); 375 if (!tspacket->HasPayload()) // no payload to scan 376 return !haveBufferedData; 359 377 360 378 const bool payloadStart = tspacket->PayloadStart(); 361 379 if (payloadStart) -
dvbrecorder.cpp
old new 1162 1158 1163 1159 // Check for keyframes and count frames 1164 1160 if (info->streamType == StreamID::H264Video) 1165 FindH264Keyframes(&tspacket);1161 _buffer_packets = !FindH264Keyframes(&tspacket); 1166 1162 else if (StreamID::IsVideo(info->streamType)) 1167 1163 _buffer_packets = !FindMPEG2Keyframes(&tspacket); 1168 1164 else if (info->streamType==0x05 && _dummy_output_video_pid ) {
