Commit 8716605a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/nutenc: Suggest genpts if AV_NOPTS_VALUE

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3ea0d9c8
...@@ -965,6 +965,8 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -965,6 +965,8 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
av_log(s, AV_LOG_ERROR, av_log(s, AV_LOG_ERROR,
"Negative pts not supported stream %d, pts %"PRId64"\n", "Negative pts not supported stream %d, pts %"PRId64"\n",
pkt->stream_index, pkt->pts); 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); return AVERROR(EINVAL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment