|
|
@@ -1102,6 +1102,12 @@ static int reap_filters(void) |
|
|
case AVMEDIA_TYPE_AUDIO: |
|
|
case AVMEDIA_TYPE_AUDIO: |
|
|
avfilter_copy_buf_props(filtered_frame, picref); |
|
|
avfilter_copy_buf_props(filtered_frame, picref); |
|
|
filtered_frame->pts = frame_pts; |
|
|
filtered_frame->pts = frame_pts; |
|
|
|
|
|
if (!(ost->st->codec->codec->capabilities & CODEC_CAP_PARAM_CHANGE) && |
|
|
|
|
|
ost->st->codec->channels != av_frame_get_channels(filtered_frame)) { |
|
|
|
|
|
av_log(NULL, AV_LOG_ERROR, |
|
|
|
|
|
"Audio filter graph output is not normalized and encoder does not support parameter changes\n"); |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
do_audio_out(of->ctx, ost, filtered_frame); |
|
|
do_audio_out(of->ctx, ost, filtered_frame); |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
|