CDG doesn't ensure a constant framerate as we can have holes in the CDG stream. So there is no guarantee of the duration of a single frame, it will be displayed until a new packet with CDG instruction arrives in the stream.
Signed-off-by: Guillaume Desmottes <guillaume.desmot...@collabora.com> --- libavformat/cdg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/cdg.c b/libavformat/cdg.c index 05cac6e528..078e985223 100644 --- a/libavformat/cdg.c +++ b/libavformat/cdg.c @@ -74,6 +74,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) pkt->stream_index = 0; pkt->dts= pkt->pts= pkt->pos / CDG_PACKET_SIZE; + pkt->duration = AV_NOPTS_VALUE; if(ret>5 && (pkt->data[0]&0x3F) == 9 && (pkt->data[1]&0x3F)==1 && !(pkt->data[2+2+1] & 0x0F)){ pkt->flags = AV_PKT_FLAG_KEY; -- 2.20.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel