Browse Source

avformat/mux: use <0 instead of != 0 for error check of init_muxer()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
da4ef13cb2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mux.c

+ 1
- 1
libavformat/mux.c View File

@@ -399,7 +399,7 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
{ {
int ret = 0; int ret = 0;


if (ret = init_muxer(s, options))
if ((ret = init_muxer(s, options)) < 0)
return ret; return ret;


if (s->oformat->write_header) { if (s->oformat->write_header) {


Loading…
Cancel
Save