mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge pull request #20942 from MaximMilashchenko:AudioPatch
Audio patch * fixed microphone, audio position * fixed docs * changed AudioOpenCheck
This commit is contained in:
committed by
GitHub
parent
017a4e7c30
commit
0a71063530
@@ -270,4 +270,15 @@ TEST_P(Media, audio)
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(/**/, Media, testing::ValuesIn(mediaParams));
|
||||
|
||||
TEST(AudioOpenCheck, bad_arg_invalid_audio_stream)
|
||||
{
|
||||
std::string fileName = "audio/test_audio.mp4";
|
||||
std::vector<int> params { CAP_PROP_AUDIO_STREAM, 1,
|
||||
CAP_PROP_VIDEO_STREAM, 0,
|
||||
CAP_PROP_AUDIO_DATA_DEPTH, CV_16S };
|
||||
VideoCapture cap;
|
||||
cap.open(findDataFile(fileName), cv::CAP_MSMF, params);
|
||||
ASSERT_FALSE(cap.isOpened());
|
||||
}
|
||||
|
||||
}} //namespace
|
||||
|
||||
Reference in New Issue
Block a user