Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
07b7c03e
Commit
07b7c03e
authored
Jun 24, 2017
by
Alexander Alekhin
Committed by
GitHub
Jun 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8980 from alalek:fix_typo_8979_2.4
(2.4) highgui(macos): fix video file reading via AVFoundation
parents
fa36e769
aae76212
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cap_avfoundation_mac.mm
modules/highgui/src/cap_avfoundation_mac.mm
+5
-5
No files found.
modules/highgui/src/cap_avfoundation_mac.mm
View file @
07b7c03e
...
...
@@ -697,12 +697,12 @@ CvCaptureFile::CvCaptureFile(const char* filename) {
return;
}
NSArray *tracks = [mAsset tracksWithMediaType:AVMediaType
Audi
o];
NSArray *tracks = [mAsset tracksWithMediaType:AVMediaType
Vide
o];
if ([tracks count] == 0) {
fprintf(stderr, "OpenCV: Couldn't read movie
file \"%s\"\n", filename);
[localpool drain];
started = 0;
return;
fprintf(stderr, "OpenCV: Couldn't read video stream from
file \"%s\"\n", filename);
[localpool drain];
started = 0;
return;
}
mAssetTrack = [tracks[0] retain];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment