Commit 621ab4e4 authored by Matthieu Bouron's avatar Matthieu Bouron Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8a8d9a73
......@@ -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++;
}
}
......
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