Commit 4b45aa51 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/asfenc: replace != 0 error check by <0

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3d6545d5
...@@ -485,7 +485,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, ...@@ -485,7 +485,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
/* chapters using ASF markers */ /* chapters using ASF markers */
if (!asf->is_streamed && s->nb_chapters) { if (!asf->is_streamed && s->nb_chapters) {
int ret; int ret;
if (ret = asf_write_markers(s)) if ((ret = asf_write_markers(s)) < 0)
return ret; return ret;
} }
/* stream headers */ /* stream headers */
......
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