Skip to content

Commit

Permalink
Merge commit '11db644a8e54f02e54d2eaad343a87fcb697c15e'
Browse files Browse the repository at this point in the history
* commit '11db644a8e54f02e54d2eaad343a87fcb697c15e':
  lavr: Update the planar check in ff_audio_convert

Merged-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Aug 17, 2014
2 parents eb70657 + 11db644 commit c939eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavresample/audio_convert.c
Expand Up @@ -345,13 +345,13 @@ int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in)
if (ac->apply_map) {
ChannelMapInfo *map = &ac->avr->ch_map_info;

if (!av_sample_fmt_is_planar(ac->out_fmt)) {
if (!ff_sample_fmt_is_planar(ac->out_fmt, ac->channels)) {
av_log(ac->avr, AV_LOG_ERROR, "cannot remap packed format during conversion\n");
return AVERROR(EINVAL);
}

if (map->do_remap) {
if (av_sample_fmt_is_planar(ac->in_fmt)) {
if (ff_sample_fmt_is_planar(ac->in_fmt, ac->channels)) {
conv_func_flat *convert = use_generic ? ac->conv_flat_generic :
ac->conv_flat;

Expand Down

0 comments on commit c939eea

Please sign in to comment.