mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/movenc: check ff_mov_init_hinting() return
Fixes a crash when the codec stream is not supported by the rtp muxer. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8a8d9a7385
commit
621ab4e4ef
@ -3733,7 +3733,8 @@ static int mov_write_header(AVFormatContext *s)
|
||||
AVStream *st = s->streams[i];
|
||||
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO ||
|
||||
st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
||||
ff_mov_init_hinting(s, hint_track, i);
|
||||
if (ff_mov_init_hinting(s, hint_track, i) < 0)
|
||||
goto error;
|
||||
hint_track++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user