mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge commit '629b2ed0ac77d7c4bf1aeac5e70cafee5fa0fcae'
* commit '629b2ed0ac77d7c4bf1aeac5e70cafee5fa0fcae':
flvdec: make sure to check create_stream and report the same error
Conflicts:
libavformat/flvdec.c
See: d7d5b5dfc1
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
3099008f07
@ -746,7 +746,7 @@ static int flv_data_packet(AVFormatContext *s, AVPacket *pkt,
|
||||
if (i == s->nb_streams) {
|
||||
st = create_stream(s, AVMEDIA_TYPE_DATA);
|
||||
if (!st)
|
||||
return AVERROR_INVALIDDATA;
|
||||
return AVERROR(ENOMEM);
|
||||
st->codec->codec_id = AV_CODEC_ID_TEXT;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user