Updated by Alexander Shishkov about 13 years ago

In function CvVideoWriter_FFMPEG::open()- [[CvVideoWriter]]_FFMPEG::open()- > icv_add_video_stream_FFMPEG() -> av_new_stream() memory is allocated for stream->info.

When closing the CvVideoWriter [[CvVideoWriter]] this memory should be free'd.

cvcap_ffmpeg:1169

/* free the streams */
for(i = 0; i < oc->nb_streams; i++) {
av_freep(&oc->streams[i]->codec);
+++ av_freep(&oc->streams[i]->info);
av_freep(&oc->streams[i]);
}

I have noticed this bug in version 2.1. In 2.2 it appears in the code, but I have not tested it.

Back