summaryrefslogtreecommitdiff
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-16 18:33:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-16 18:37:21 +0200
commitda4ef13cb20642dae4a893c9b32b7bbff60bfb42 (patch)
tree6fcb762ef57e5e63b71fd6ad41ae70a2df07e56d /libavformat/mux.c
parentf8598cefe921b4d19690e03558c5d1aedce84740 (diff)
avformat/mux: use <0 instead of != 0 for error check of init_muxer()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 945bb9d91d..a39c5347a3 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -399,7 +399,7 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
{
int ret = 0;
- if (ret = init_muxer(s, options))
+ if ((ret = init_muxer(s, options)) < 0)
return ret;
if (s->oformat->write_header) {