summaryrefslogtreecommitdiff
path: root/tools/ismindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ismindex.c')
-rw-r--r--tools/ismindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index d355cffe38..39b5378190 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -574,7 +574,7 @@ static int handle_file(struct Tracks *tracks, const char *file, int split,
if (tracks->audio_track < 0)
tracks->audio_track = tracks->nb_tracks;
tracks->nb_audio_tracks++;
- track->channels = st->codecpar->channels;
+ track->channels = st->codecpar->ch_layout.nb_channels;
track->sample_rate = st->codecpar->sample_rate;
if (st->codecpar->codec_id == AV_CODEC_ID_AAC) {
track->fourcc = "AACL";