mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
avauddec: Read channels from the channels field
If there is no layout, just read the channel count from the channels field. https://bugzilla.gnome.org/show_bug.cgi?id=752186
This commit is contained in:
parent
6bfe79d903
commit
3b6c656e25
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,8 @@ gst_ffmpegauddec_negotiate (GstFFMpegAudDec * ffmpegdec,
|
||||||
goto no_caps;
|
goto no_caps;
|
||||||
channels =
|
channels =
|
||||||
av_get_channel_layout_nb_channels (av_frame_get_channel_layout (frame));
|
av_get_channel_layout_nb_channels (av_frame_get_channel_layout (frame));
|
||||||
|
if (channels == 0)
|
||||||
|
channels = av_frame_get_channels (frame);
|
||||||
if (channels == 0)
|
if (channels == 0)
|
||||||
goto no_caps;
|
goto no_caps;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue