Merge remote-tracking branch 'origin/2.4' into merge-2.4
Conflicts: modules/calib3d/doc/camera_calibration_and_3d_reconstruction.rst modules/features2d/doc/common_interfaces_of_descriptor_extractors.rst modules/features2d/doc/object_categorization.rst modules/gpu/doc/camera_calibration_and_3d_reconstruction.rst modules/gpu/doc/image_filtering.rst modules/gpu/doc/image_processing.rst modules/gpu/doc/video.rst modules/imgproc/doc/miscellaneous_transformations.rst modules/imgproc/doc/object_detection.rst modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst modules/imgproc/src/samplers.cpp modules/ml/doc/k_nearest_neighbors.rst modules/nonfree/doc/feature_detection.rst modules/ocl/include/opencv2/ocl/ocl.hpp modules/photo/doc/inpainting.rst modules/ts/include/opencv2/ts.hpp platforms/scripts/camera_build.conf samples/android/camera-calibration/AndroidManifest.xml
This commit is contained in:
@@ -1392,8 +1392,6 @@ bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int
|
||||
/// close video output stream and free associated memory
|
||||
void CvVideoWriter_FFMPEG::close()
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
// nothing to do if already released
|
||||
if ( !picture )
|
||||
return;
|
||||
@@ -1449,13 +1447,6 @@ void CvVideoWriter_FFMPEG::close()
|
||||
|
||||
av_free(outbuf);
|
||||
|
||||
/* free the streams */
|
||||
for(i = 0; i < oc->nb_streams; i++)
|
||||
{
|
||||
av_freep(&oc->streams[i]->codec);
|
||||
av_freep(&oc->streams[i]);
|
||||
}
|
||||
|
||||
if (!(fmt->flags & AVFMT_NOFILE))
|
||||
{
|
||||
/* close the output file */
|
||||
@@ -1473,7 +1464,7 @@ void CvVideoWriter_FFMPEG::close()
|
||||
}
|
||||
|
||||
/* free the stream */
|
||||
av_free(oc);
|
||||
avformat_free_context(oc);
|
||||
|
||||
if( temp_image.data )
|
||||
{
|
||||
|
Reference in New Issue
Block a user