Browse Source

fix: assigning instead of comparing

Signed-off-by: AppChecker <support.appc@cnpo.ru>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
AppChecker Michael Niedermayer 10 years ago
parent
commit
8199908fdf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/webmdashenc.c

+ 1
- 1
libavformat/webmdashenc.c View File

@@ -194,7 +194,7 @@ static int write_representation(AVFormatContext *s, AVStream *stream, char *id,
avio_printf(s->pb, " width=\"%d\"", stream->codec->width); avio_printf(s->pb, " width=\"%d\"", stream->codec->width);
if (stream->codec->codec_type == AVMEDIA_TYPE_VIDEO && output_height) if (stream->codec->codec_type == AVMEDIA_TYPE_VIDEO && output_height)
avio_printf(s->pb, " height=\"%d\"", stream->codec->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); avio_printf(s->pb, " audioSamplingRate=\"%d\"", stream->codec->sample_rate);
if (w->is_live) { if (w->is_live) {
// For live streams, Codec and Mime Type always go in the Representation tag. // For live streams, Codec and Mime Type always go in the Representation tag.


Loading…
Cancel
Save