Commit 57cd2f77 authored by Stefano Sabatini's avatar Stefano Sabatini

lavf/mpegenc: provide better feedback in case of invalid media type

parent 0c800b27
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment