mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
return AVERROR(ENOMEM) if stream could not be allocated
Originally committed as revision 19702 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b01c7b756e
commit
6aa333471c
@ -55,7 +55,7 @@ static int r3d_read_red1(AVFormatContext *s)
|
|||||||
int tmp, tmp2;
|
int tmp, tmp2;
|
||||||
|
|
||||||
if (!st)
|
if (!st)
|
||||||
return -1;
|
return AVERROR(ENOMEM);
|
||||||
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
||||||
st->codec->codec_id = CODEC_ID_JPEG2000;
|
st->codec->codec_id = CODEC_ID_JPEG2000;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user