Browse Source

fix resampling if frame doesn't have number of channels set

fixes #336

Change-Id: Ic84734e4296ff8c807a605c67074b8b285c92666
changes/55/12455/1
Richard Fuchs 9 years ago
parent
commit
2afbfa55a8
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      recording-daemon/resample.c

+ 4
- 0
recording-daemon/resample.c View File

@ -37,6 +37,10 @@ resample:
if (!resample->avresample)
goto err;
if (!frame->channel_layout)
frame->channel_layout = av_get_default_channel_layout(
av_frame_get_channels(frame));
err = "failed to set resample option";
if ((errcode = av_opt_set_int(resample->avresample, "in_channel_layout",
frame->channel_layout, 0)))


Loading…
Cancel
Save