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.
pull/391/head
Gyan Doshi 2 months ago
parent aa20294b31
commit fe04b93afa
  1. 2
      fftools/ffmpeg_sched.c

@ -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…
Cancel
Save