Browse Source

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>
tags/n2.0
Matthieu Bouron Michael Niedermayer 12 years ago
parent
commit
621ab4e4ef
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/movenc.c

+ 2
- 1
libavformat/movenc.c View File

@@ -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…
Cancel
Save