Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
transcoding: AVFrame has channels only for FFMPEG
  • Loading branch information
perexg committed Oct 10, 2014
1 parent 6051184 commit 930bd97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plumbing/transcoding.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 930bd97

Please sign in to comment.