[FFmpeg-devel] [PATCH 3/4] lswr: fix assert failure on unknown layouts.

Michael Niedermayer michaelni at gmx.at
Fri Oct 25 23:08:29 CEST 2013


On Fri, Oct 25, 2013 at 04:20:57PM +0200, Nicolas George wrote:
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  libswresample/rematrix.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
> index 5c98e68..e146edf 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));

ok if it works

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131025/733a49c3/attachment.asc>


More information about the ffmpeg-devel mailing list