• Roman Donchenko's avatar
    VideoCapture: copy the captured frame, to avoid dangling Mats · d6a7a6d5
    Roman Donchenko authored
    Previously, VideoCapture::retrieve would return a Mat that referenced
    the internal IplImage. Since the latter is rewritten every time a
    frame is captured, it means that if the user captures two frames in a row,
    the first frame would reference nothing. Similar if a user captures a frame,
    then destroys the VideoCapture instance.
    
    Note that the other branch of the if isn't affected, since flip allocates
    a new Mat.
    d6a7a6d5
Name
Last commit
Last update
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
README.md Loading commit data...
index.rst Loading commit data...