mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Fixed [swscaler ...] bad dst image pointers (tickets ##1708, 1755)
This commit is contained in:
parent
fa7e7e54dc
commit
0ef71c04db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user