Browse Source

wtvenc: output ff_format_none if ff_put_wav_header fails

This occurs when muxing E-AC-3.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Peter Ross Michael Niedermayer 11 years ago
parent
commit
e93a73cbef
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/wtvenc.c

+ 2
- 1
libavformat/wtvenc.c View File

@@ -298,7 +298,8 @@ static int write_stream_codec_info(AVFormatContext *s, AVStream *st)
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
put_videoinfoheader2(pb, st);
} else {
ff_put_wav_header(pb, st->codec);
if (ff_put_wav_header(pb, st->codec) < 0)
format_type = &ff_format_none;
}
hdr_size = avio_tell(pb) - hdr_pos_start;



Loading…
Cancel
Save