]> git.sesse.net Git - ffmpeg/commitdiff
fix: assigning instead of comparing
authorAppChecker <support.appc@cnpo.ru>
Mon, 26 Oct 2015 17:21:07 +0000 (20:21 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Oct 2015 11:11:38 +0000 (12:11 +0100)
Signed-off-by: AppChecker <support.appc@cnpo.ru>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/webmdashenc.c

index 898e4641d372c55a3bd2586c84a9a2677ccb13df..76e7eda40186fc5ad5b13a37e893f1658d492acf 100644 (file)
@@ -194,7 +194,7 @@ static int write_representation(AVFormatContext *s, AVStream *stream, char *id,
         avio_printf(s->pb, " width=\"%d\"", stream->codec->width);
     if (stream->codec->codec_type == AVMEDIA_TYPE_VIDEO && output_height)
         avio_printf(s->pb, " height=\"%d\"", stream->codec->height);
-    if (stream->codec->codec_type = AVMEDIA_TYPE_AUDIO && output_sample_rate)
+    if (stream->codec->codec_type == AVMEDIA_TYPE_AUDIO && output_sample_rate)
         avio_printf(s->pb, " audioSamplingRate=\"%d\"", stream->codec->sample_rate);
     if (w->is_live) {
         // For live streams, Codec and Mime Type always go in the Representation tag.