Use != instead of == when checking dts tiemscale stuff

This commit is contained in:
Isaac Connor 2016-04-05 09:01:54 -04:00
parent be13e56c3c
commit f1331df4d9
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ int VideoStore::writeVideoFramePacket(AVPacket *ipkt, AVStream *input_st){//, AV
} }
//Scale the DTS of the outgoing packet to be the correct time base //Scale the DTS of the outgoing packet to be the correct time base
if(ipkt->dts == AV_NOPTS_VALUE) { if(ipkt->dts != AV_NOPTS_VALUE) {
opkt.dts = av_rescale_q(input_st->cur_dts-startDts, AV_TIME_BASE_Q, video_st->time_base); opkt.dts = av_rescale_q(input_st->cur_dts-startDts, AV_TIME_BASE_Q, video_st->time_base);
} else { } else {
opkt.dts = av_rescale_q(ipkt->dts-startDts, input_st->time_base, video_st->time_base); opkt.dts = av_rescale_q(ipkt->dts-startDts, input_st->time_base, video_st->time_base);