[FFmpeg-cvslog] paf: set channel layout
Paul B Mahol
git at videolan.org
Tue Nov 13 14:27:32 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 13 13:25:19 2012 +0000| [09a0392341ac0bfc969f0ff9e103671b3c64713e] | committer: Paul B Mahol
paf: set channel layout
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09a0392341ac0bfc969f0ff9e103671b3c64713e
---
libavformat/paf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/paf.c b/libavformat/paf.c
index e67732b..09786eb 100644
--- a/libavformat/paf.c
+++ b/libavformat/paf.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavcodec/paf.h"
#include "avformat.h"
#include "internal.h"
@@ -119,6 +120,7 @@ static int read_header(AVFormatContext *s)
ast->codec->codec_tag = 0;
ast->codec->codec_id = AV_CODEC_ID_PAF_AUDIO;
ast->codec->channels = 2;
+ ast->codec->channel_layout = AV_CH_LAYOUT_STEREO;
ast->codec->sample_rate = 22050;
avpriv_set_pts_info(ast, 64, 1, 22050);
More information about the ffmpeg-cvslog
mailing list