You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffmpeg_sched: return better error code
The existing code of 'No space left on device' leaves end users confused since the issue isn't of disk space.
This commit is contained in:
@@ -1836,7 +1836,7 @@ static int mux_queue_packet(SchMux *mux, SchMuxStream *ms, AVPacket *pkt)
|
||||
if (new_size <= packets) {
|
||||
av_log(mux, AV_LOG_ERROR,
|
||||
"Too many packets buffered for output stream.\n");
|
||||
return AVERROR(ENOSPC);
|
||||
return AVERROR_BUFFER_TOO_SMALL;
|
||||
}
|
||||
ret = av_fifo_grow2(q->fifo, new_size - packets);
|
||||
if (ret < 0)
|
||||
|
Reference in New Issue
Block a user