[FFmpeg-cvslog] avformat/nutenc: Suggest genpts if AV_NOPTS_VALUE

Michael Niedermayer git at videolan.org
Fri May 30 18:56:36 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 30 17:53:36 2014 +0200| [8716605a26057043a9be2d3f088eb4155564d6ec] | committer: Michael Niedermayer

avformat/nutenc: Suggest genpts if AV_NOPTS_VALUE

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8716605a26057043a9be2d3f088eb4155564d6ec
---

 libavformat/nutenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index dfb7992..dfe0a32 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -965,6 +965,8 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
         av_log(s, AV_LOG_ERROR,
                "Negative pts not supported stream %d, pts %"PRId64"\n",
                pkt->stream_index, pkt->pts);
+        if (pkt->pts == AV_NOPTS_VALUE)
+            av_log(s, AV_LOG_ERROR, "Try to enable the genpts flag\n");
         return AVERROR(EINVAL);
     }
 



More information about the ffmpeg-cvslog mailing list