mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/nutenc: Suggest genpts if AV_NOPTS_VALUE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3ea0d9c8a5
commit
8716605a26
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user