summaryrefslogtreecommitdiff
path: root/libavformat/webmdashenc.c
diff options
context:
space:
mode:
authorAppChecker <support.appc@cnpo.ru>2015-10-26 20:21:07 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-27 12:11:38 +0100
commit8199908fdf9b3797cceaea9d1e2fc09d02ef7309 (patch)
tree737634e72022302b060312c464f5d1cb434808c5 /libavformat/webmdashenc.c
parent31741aecbf9938194b25f14de434104be33f5809 (diff)
fix: assigning instead of comparing
Signed-off-by: AppChecker <support.appc@cnpo.ru> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/webmdashenc.c')
-rw-r--r--libavformat/webmdashenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c
index 898e4641d3..76e7eda401 100644
--- a/libavformat/webmdashenc.c
+++ b/libavformat/webmdashenc.c
@@ -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.