]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcoding: AVFrame has channels only for FFMPEG
authorJaroslav Kysela <perex@perex.cz>
Fri, 10 Oct 2014 18:36:20 +0000 (20:36 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 10 Oct 2014 18:36:20 +0000 (20:36 +0200)
src/plumbing/transcoding.c

index f20092d60f0978a7b7da136146e568952c713fce..8ecddac4b532711a3e66aea8c1940f3f96b5e628 100644 (file)
@@ -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) {