mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-19 13:30:03 +01:00
lavf/mpegenc: provide better feedback in case of invalid media type
This commit is contained in:
@@ -410,7 +410,9 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx)
|
|||||||
stream->max_buffer_size = 16 * 1024;
|
stream->max_buffer_size = 16 * 1024;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1;
|
av_log(ctx, AV_LOG_ERROR, "Invalid media type %s for output stream #%d\n",
|
||||||
|
av_get_media_type_string(st->codec->codec_type), i);
|
||||||
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
stream->fifo = av_fifo_alloc(16);
|
stream->fifo = av_fifo_alloc(16);
|
||||||
if (!stream->fifo)
|
if (!stream->fifo)
|
||||||
|
|||||||
Reference in New Issue
Block a user