Commit 0ef71c04 authored by Alexander Reshetnikov's avatar Alexander Reshetnikov

Fixed [swscaler ...] bad dst image pointers (tickets ##1708, 1755)

parent fa7e7e54
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment