avformat/nutenc: Suggest genpts if AV_NOPTS_VALUE
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 30 May 2014 15:53:36 +0000 (17:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 30 May 2014 16:49:25 +0000 (18:49 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutenc.c

index dfb7992..dfe0a32 100644 (file)
@@ -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);
     }