X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpegenc.c;h=b3ee2a09b9decac9bbfb63cfa8ce88db09a7001c;hb=7cecab2f886b539096996980f4379d4b88ab7a46;hp=2520f49db194c159058249fc44556927cba8bce4;hpb=427598a2f423eb3374ab4c33777c77de2290a324;p=ffmpeg diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 2520f49db19..b3ee2a09b9d 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -410,7 +410,9 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx) stream->max_buffer_size = 16 * 1024; break; 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); if (!stream->fifo)