[FFmpeg-cvslog] avformat/movenc: log stream index for invalid pkt duration
Gyan Doshi
git at videolan.org
Sat Dec 7 06:38:37 EET 2024
ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Thu Dec 5 10:07:36 2024 +0530| [914f89dbc61781eab00c05919b552b3170517e16] | committer: Gyan Doshi
avformat/movenc: log stream index for invalid pkt duration
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=914f89dbc61781eab00c05919b552b3170517e16
---
libavformat/movenc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 9cfbff002a..a4967d5480 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -6544,15 +6544,15 @@ static int check_pkt(AVFormatContext *s, MOVTrack *trk, AVPacket *pkt)
duration = pkt->dts - ref;
if (pkt->dts < ref || duration >= INT_MAX) {
- av_log(s, AV_LOG_WARNING, "Packet duration: %"PRId64" / dts: %"PRId64" is out of range\n",
- duration, pkt->dts);
+ av_log(s, AV_LOG_WARNING, "Packet duration: %"PRId64" / dts: %"PRId64" in stream %d is out of range\n",
+ duration, pkt->dts, pkt->stream_index);
pkt->dts = ref + 1;
pkt->pts = AV_NOPTS_VALUE;
}
if (pkt->duration < 0 || pkt->duration > INT_MAX) {
- av_log(s, AV_LOG_ERROR, "Application provided duration: %"PRId64" is invalid\n", pkt->duration);
+ av_log(s, AV_LOG_ERROR, "Application provided duration: %"PRId64" in stream %d is invalid\n", pkt->duration, pkt->stream_index);
return AVERROR(EINVAL);
}
return 0;
More information about the ffmpeg-cvslog
mailing list