Skip to content

Commit 1dc1f09

Browse files
author
Clement Champetier
committed
FilterGraph: fixed channel layout value of abuffer
Need to pass the hexa value of the channel layout.
1 parent 35d273c commit 1dc1f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/filter/FilterGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void FilterGraph::pushInBuffer(const Frame& frame)
141141
<< _codec.getAVCodecContext().time_base.den << ":";
142142
filterOptions << "sample_rate=" << audioFrame.getSampleRate() << ":";
143143
filterOptions << "sample_fmt=" << getSampleFormatName(audioFrame.getSampleFormat()) << ":";
144-
filterOptions << "channel_layout=0x" << audioFrame.getChannelLayout();
144+
filterOptions << "channel_layout=0x" << std::hex << audioFrame.getChannelLayout();
145145
}
146146
// video frame
147147
else if(frame.isVideoFrame())

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy