diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-30 17:53:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-30 18:49:25 +0200 |
commit | 8716605a26057043a9be2d3f088eb4155564d6ec (patch) | |
tree | 4859f7b4af8a0383dbfc9959848abce3a7e95469 /libavformat/nutenc.c | |
parent | 3ea0d9c8a55b832ab6fb34fc9837642858e7b007 (diff) | |
download | ffmpeg-8716605a26057043a9be2d3f088eb4155564d6ec.tar.gz |
avformat/nutenc: Suggest genpts if AV_NOPTS_VALUE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index dfb7992da3..dfe0a32d5e 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); } |