it is ok for pts to be AV_NOPT_VALUE. It is not yet deprecated and doesn't mess anything up.

pull/2681/head
Isaac Connor 2019-06-20 15:08:38 -04:00
parent db7362dbcb
commit 8b95ba8b3c
1 changed files with 2 additions and 2 deletions

View File

@ -760,8 +760,8 @@ int FfmpegCamera::CaptureAndRecord( Image &image, timeval recording, char* event
dumpPacket(mFormatContext->streams[packet.stream_index], &packet, "Captured Packet");
if ( packet.dts == AV_NOPTS_VALUE ) {
packet.dts = packet.pts;
} else if ( packet.pts == AV_NOPTS_VALUE ) {
packet.pts = packet.dts;
//} else if ( packet.pts == AV_NOPTS_VALUE ) {
//packet.pts = packet.dts;
}
// Video recording