X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwebmdashenc.c;h=76e7eda40186fc5ad5b13a37e893f1658d492acf;hb=3df9ec5ce7bc57ee303e715b949f65727a52c916;hp=898e4641d372c55a3bd2586c84a9a2677ccb13df;hpb=0e4528b88e10e3550dd778ac56a1da9d0a136928;p=ffmpeg diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index 898e4641d37..76e7eda4018 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.