From 0ef71c04db53f02f2fcc5477c462086b0a78703f Mon Sep 17 00:00:00 2001 From: Alexander Reshetnikov Date: Thu, 5 Apr 2012 16:29:42 +0000 Subject: [PATCH] Fixed [swscaler ...] bad dst image pointers (tickets ##1708, 1755) --- modules/highgui/src/cap_ffmpeg_impl_v2.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/highgui/src/cap_ffmpeg_impl_v2.hpp b/modules/highgui/src/cap_ffmpeg_impl_v2.hpp index 4ae0982..5dc4d89 100755 --- a/modules/highgui/src/cap_ffmpeg_impl_v2.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl_v2.hpp @@ -550,8 +550,6 @@ bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char** data, int* step, int* if( !video_st || !picture->data[0] ) return false; - rgb_picture = *avcodec_alloc_frame(); - avpicture_fill((AVPicture*)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24, video_st->codec->width, video_st->codec->height); frame.width = video_st->codec->width; -- 2.7.4