mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Merge commit '8a26ae5f94'
* commit '8a26ae5f94':
mpjpeg: Check stream allocation
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
a57ee6cca1
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue