Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2013-10-25 18:11:30 +0400
committerNicolas George <george@nsup.org>2013-11-03 13:30:37 +0400
commit4a640a6ac89099bfb02d6d3d3ada04e321a37476 (patch)
treec8af0a948eadf7f57ee4514874123989154ac260 /libswresample/rematrix.c
parent6e2473edfda26a556c615ebc04d8aeba800bef7e (diff)
lswr: fix assert failure on unknown layouts.
Diffstat (limited to 'libswresample/rematrix.c')
-rw-r--r--libswresample/rematrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index 5c98e68990..e146edfcf7 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -433,8 +433,8 @@ int swri_rematrix(SwrContext *s, AudioData *out, AudioData *in, int len, int mus
off = len1 * out->bps;
}
- av_assert0(out->ch_count == av_get_channel_layout_nb_channels(s->out_ch_layout));
- av_assert0(in ->ch_count == av_get_channel_layout_nb_channels(s-> in_ch_layout));
+ av_assert0(!s->out_ch_layout || out->ch_count == av_get_channel_layout_nb_channels(s->out_ch_layout));
+ av_assert0(!s-> in_ch_layout || in ->ch_count == av_get_channel_layout_nb_channels(s-> in_ch_layout));
for(out_i=0; out_i<out->ch_count; out_i++){
switch(s->matrix_ch[out_i][0]){