From: Jaroslav Kysela Date: Fri, 10 Oct 2014 18:36:20 +0000 (+0200) Subject: transcoding: AVFrame has channels only for FFMPEG X-Git-Tag: v4.1~1081 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=930bd978b47f18fd34293657c0f3e2fccf21ef0d;p=thirdparty%2Ftvheadend.git transcoding: AVFrame has channels only for FFMPEG --- diff --git a/src/plumbing/transcoding.c b/src/plumbing/transcoding.c index f20092d60..8ecddac4b 100644 --- a/src/plumbing/transcoding.c +++ b/src/plumbing/transcoding.c @@ -872,7 +872,9 @@ transcoder_stream_audio(transcoder_stream_t *ts, th_pkt_t *pkt) frame = av_frame_alloc(); frame->nb_samples = octx->frame_size; frame->format = octx->sample_fmt; +#if LIBAVUTIL_VERSION_MICRO >= 100 /* FFMPEG */ frame->channels = octx->channels; +#endif frame->channel_layout = octx->channel_layout; frame->sample_rate = octx->sample_rate; if (av_frame_get_buffer(frame, 0) < 0) {