mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge pull request #8980 from alalek:fix_typo_8979_2.4
(2.4) highgui(macos): fix video file reading via AVFoundation
This commit is contained in:
@@ -697,12 +697,12 @@ CvCaptureFile::CvCaptureFile(const char* filename) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSArray *tracks = [mAsset tracksWithMediaType:AVMediaTypeAudio];
|
NSArray *tracks = [mAsset tracksWithMediaType:AVMediaTypeVideo];
|
||||||
if ([tracks count] == 0) {
|
if ([tracks count] == 0) {
|
||||||
fprintf(stderr, "OpenCV: Couldn't read movie file \"%s\"\n", filename);
|
fprintf(stderr, "OpenCV: Couldn't read video stream from file \"%s\"\n", filename);
|
||||||
[localpool drain];
|
[localpool drain];
|
||||||
started = 0;
|
started = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mAssetTrack = [tracks[0] retain];
|
mAssetTrack = [tracks[0] retain];
|
||||||
|
|||||||
Reference in New Issue
Block a user