Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
transcoding: av_make_q is only available on recent ffmpeg
  • Loading branch information
stbenz authored and perexg committed May 23, 2015
1 parent 644f7ca commit 8c2bcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plumbing/transcoding.c
Expand Up @@ -1037,7 +1037,7 @@ transcoder_stream_video(transcoder_t *t, transcoder_stream_t *ts, th_pkt_t *pkt)
#endif

// set default gop size to 1 second
octx->gop_size = ceil(av_q2d(av_inv_q(av_div_q(octx->time_base, av_make_q(1, octx->ticks_per_frame)))));
octx->gop_size = ceil(av_q2d(av_inv_q(av_div_q(octx->time_base, (AVRational){1, octx->ticks_per_frame}))));

switch (ts->ts_type) {
case SCT_MPEG2VIDEO:
Expand Down

0 comments on commit 8c2bcf9

Please sign in to comment.