[FFmpeg-cvslog] astenc: fix assignment vs compare
Michael Niedermayer
git at videolan.org
Tue Dec 11 09:03:12 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 11 08:56:42 2012 +0100| [b688a2847062186b2465fa321c01cdf88468ca05] | committer: Michael Niedermayer
astenc: fix assignment vs compare
Fixes CID747736
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b688a2847062186b2465fa321c01cdf88468ca05
---
libavformat/astenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/astenc.c b/libavformat/astenc.c
index 2c4afb7..6121a01 100644
--- a/libavformat/astenc.c
+++ b/libavformat/astenc.c
@@ -51,7 +51,7 @@ static int ast_write_header(AVFormatContext *s)
AVCodecContext *enc;
unsigned int codec_tag;
- if (s->nb_streams = 1) {
+ if (s->nb_streams == 1) {
enc = s->streams[0]->codec;
} else {
av_log(s, AV_LOG_ERROR, "only one stream is supported\n");
More information about the ffmpeg-cvslog
mailing list