diff mbox

[FFmpeg-devel,012/244] act: convert to new channel layout API

Message ID 20191206101710.22028-12-anton@khirnov.net
State New
Headers show

Commit Message

Anton Khirnov Dec. 6, 2019, 10:17 a.m. UTC
---
 libavformat/act.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavformat/act.c b/libavformat/act.c
index 26425ca1bb..2ba2673998 100644
--- a/libavformat/act.c
+++ b/libavformat/act.c
@@ -87,7 +87,8 @@  static int read_header(AVFormatContext *s)
     }
 
     st->codecpar->frame_size=80;
-    st->codecpar->channels=1;
+    st->codecpar->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
+    st->codecpar->ch_layout.nb_channels = 1;
     avpriv_set_pts_info(st, 64, 1, 100);
 
     st->codecpar->codec_id=AV_CODEC_ID_G729;