Commit b688a284 authored by Michael Niedermayer's avatar Michael Niedermayer

astenc: fix assignment vs compare

Fixes CID747736
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a70b38d2
...@@ -51,7 +51,7 @@ static int ast_write_header(AVFormatContext *s) ...@@ -51,7 +51,7 @@ static int ast_write_header(AVFormatContext *s)
AVCodecContext *enc; AVCodecContext *enc;
unsigned int codec_tag; unsigned int codec_tag;
if (s->nb_streams = 1) { if (s->nb_streams == 1) {
enc = s->streams[0]->codec; enc = s->streams[0]->codec;
} else { } else {
av_log(s, AV_LOG_ERROR, "only one stream is supported\n"); av_log(s, AV_LOG_ERROR, "only one stream is supported\n");
......
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