mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
Merge pull request #13033 from alalek:videoio_fix_ffmpeg_3.4
This commit is contained in:
commit
d9d8ad20a0
@ -48,7 +48,10 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#define OPENCV_FOURCC(c1, c2, c3, c4) (((c1) & 255) + (((c2) & 255) << 8) + (((c3) & 255) << 16) + (((c4) & 255) << 24))
|
#ifndef __OPENCV_BUILD
|
||||||
|
#define CV_FOURCC(c1, c2, c3, c4) (((c1) & 255) + (((c2) & 255) << 8) + (((c3) & 255) << 16) + (((c4) & 255) << 24))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CALC_FFMPEG_VERSION(a,b,c) ( a<<16 | b<<8 | c )
|
#define CALC_FFMPEG_VERSION(a,b,c) ( a<<16 | b<<8 | c )
|
||||||
|
|
||||||
#if defined _MSC_VER && _MSC_VER >= 1200
|
#if defined _MSC_VER && _MSC_VER >= 1200
|
||||||
@ -1197,7 +1200,7 @@ double CvCapture_FFMPEG::getProperty( int property_id ) const
|
|||||||
return codec_tag;
|
return codec_tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (double) OPENCV_FOURCC(codec_fourcc[0], codec_fourcc[1], codec_fourcc[2], codec_fourcc[3]);
|
return (double) CV_FOURCC(codec_fourcc[0], codec_fourcc[1], codec_fourcc[2], codec_fourcc[3]);
|
||||||
case CV_FFMPEG_CAP_PROP_SAR_NUM:
|
case CV_FFMPEG_CAP_PROP_SAR_NUM:
|
||||||
return _opencv_ffmpeg_get_sample_aspect_ratio(ic->streams[video_stream]).num;
|
return _opencv_ffmpeg_get_sample_aspect_ratio(ic->streams[video_stream]).num;
|
||||||
case CV_FFMPEG_CAP_PROP_SAR_DEN:
|
case CV_FFMPEG_CAP_PROP_SAR_DEN:
|
||||||
|
Loading…
Reference in New Issue
Block a user