choose cur_dts instead of 0 for dts
This commit is contained in:
parent
ca02f0cc17
commit
1e08b333b4
|
@ -911,7 +911,8 @@ int VideoStore::writeVideoFramePacket(AVPacket *ipkt) {
|
||||||
video_last_pts = ipkt->pts;
|
video_last_pts = ipkt->pts;
|
||||||
} else {
|
} else {
|
||||||
Debug(3, "opkt.pts = undef");
|
Debug(3, "opkt.pts = undef");
|
||||||
opkt.pts = 0;
|
opkt.pts = AV_NOPTS_VALUE;
|
||||||
|
// can't set 0, it will get rejected
|
||||||
//AV_NOPTS_VALUE;
|
//AV_NOPTS_VALUE;
|
||||||
}
|
}
|
||||||
// Just because the in stream wraps, doesn't mean the out needs to.
|
// Just because the in stream wraps, doesn't mean the out needs to.
|
||||||
|
@ -943,7 +944,8 @@ int VideoStore::writeVideoFramePacket(AVPacket *ipkt) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Debug(3, "opkt.dts = undef");
|
Debug(3, "opkt.dts = undef");
|
||||||
opkt.dts = 0;
|
opkt.dts = video_out_stream->cur_dts;
|
||||||
|
//opkt.dts = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
# if 0
|
# if 0
|
||||||
|
|
Loading…
Reference in New Issue