forked from FFmpeg/FFmpeg
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:
parent
aa20294b31
commit
fe04b93afa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue