Commit 3f431a16 authored by Alexander Alekhin's avatar Alexander Alekhin

videoio: fix ffmpeg wrapper build

parent 593e240d
...@@ -1082,7 +1082,11 @@ bool CvCapture_FFMPEG::processRawPacket() ...@@ -1082,7 +1082,11 @@ bool CvCapture_FFMPEG::processRawPacket()
const AVBitStreamFilter * bsf = av_bsf_get_by_name(filterName); const AVBitStreamFilter * bsf = av_bsf_get_by_name(filterName);
if (!bsf) if (!bsf)
{ {
#ifdef __OPENCV_BUILD
CV_WARN(cv::format("Bitstream filter is not available: %s", filterName).c_str()); CV_WARN(cv::format("Bitstream filter is not available: %s", filterName).c_str());
#else
CV_WARN("Bitstream filter is not available");
#endif
return false; return false;
} }
int err = av_bsf_alloc(bsf, &bsfc); int err = av_bsf_alloc(bsf, &bsfc);
...@@ -1102,7 +1106,11 @@ bool CvCapture_FFMPEG::processRawPacket() ...@@ -1102,7 +1106,11 @@ bool CvCapture_FFMPEG::processRawPacket()
bsfc = av_bitstream_filter_init(filterName); bsfc = av_bitstream_filter_init(filterName);
if (!bsfc) if (!bsfc)
{ {
#ifdef __OPENCV_BUILD
CV_WARN(cv::format("Bitstream filter is not available: %s", filterName).c_str()); CV_WARN(cv::format("Bitstream filter is not available: %s", filterName).c_str());
#else
CV_WARN("Bitstream filter is not available");
#endif
return false; return false;
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment