it is ok for pts to be AV_NOPT_VALUE. It is not yet deprecated and doesn't mess anything up.
parent
db7362dbcb
commit
8b95ba8b3c
|
@ -760,8 +760,8 @@ int FfmpegCamera::CaptureAndRecord( Image &image, timeval recording, char* event
|
||||||
dumpPacket(mFormatContext->streams[packet.stream_index], &packet, "Captured Packet");
|
dumpPacket(mFormatContext->streams[packet.stream_index], &packet, "Captured Packet");
|
||||||
if ( packet.dts == AV_NOPTS_VALUE ) {
|
if ( packet.dts == AV_NOPTS_VALUE ) {
|
||||||
packet.dts = packet.pts;
|
packet.dts = packet.pts;
|
||||||
} else if ( packet.pts == AV_NOPTS_VALUE ) {
|
//} else if ( packet.pts == AV_NOPTS_VALUE ) {
|
||||||
packet.pts = packet.dts;
|
//packet.pts = packet.dts;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Video recording
|
// Video recording
|
||||||
|
|
Loading…
Reference in New Issue