Commit a57ee6cc authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '8a26ae5f'

* commit '8a26ae5f':
  mpjpeg: Check stream allocation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 30b8f3e7 8a26ae5f
......@@ -123,6 +123,8 @@ static int mpjpeg_read_header(AVFormatContext *s)
return AVERROR_INVALIDDATA;
st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = AV_CODEC_ID_MJPEG;
......
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