mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
asfmux: remove unnecessary conditional
The two branches of the if conditional are identical, which means in all cases the same gst_asf_put_guid() will be executed. Do it directly. CID #1226448
This commit is contained in:
parent
1890e7355a
commit
e3418a963a
1 changed files with 1 additions and 5 deletions
|
@ -708,11 +708,7 @@ gst_asf_mux_write_stream_properties (GstAsfMux * asfmux, guint8 ** buf,
|
|||
else
|
||||
gst_asf_put_guid (*buf + 24, guids[ASF_VIDEO_MEDIA_INDEX]);
|
||||
/* error correction */
|
||||
if (asfpad->is_audio) {
|
||||
gst_asf_put_guid (*buf + 40, guids[ASF_NO_ERROR_CORRECTION_INDEX]);
|
||||
} else {
|
||||
gst_asf_put_guid (*buf + 40, guids[ASF_NO_ERROR_CORRECTION_INDEX]);
|
||||
}
|
||||
gst_asf_put_guid (*buf + 40, guids[ASF_NO_ERROR_CORRECTION_INDEX]);
|
||||
GST_WRITE_UINT64_LE (*buf + 56, 0); /* time offset */
|
||||
|
||||
GST_WRITE_UINT32_LE (*buf + 64, codec_data_length + media_specific_data_length); /* type specific data length */
|
||||
|
|
Loading…
Reference in a new issue