nginx-audio-track-for-hls-module icon indicating copy to clipboard operation
nginx-audio-track-for-hls-module copied to clipboard

Put IFDEF for different libav versions (API compatibility)

Open flavioribeiro opened this issue 11 years ago • 0 comments

Make something similar to www.github.com/wandenberg/nginx-video-thumbextractor-module

#if LIBAVFORMAT_VERSION_INT <= AV_VERSION_INT(53, 5, 0)
if (av_find_stream_info(pFormatCtx) < 0) {
#else
if (avformat_find_stream_info(pFormatCtx, NULL) < 0) {
#endif
     ngx_log_error(NGX_LOG_ERR, log, 0, "video thumb extractor module: Couldn't find stream information");
     rc = NGX_ERROR;
goto exit;
}

flavioribeiro avatar May 01 '13 17:05 flavioribeiro