Permalink
Browse files

Fix PIP video frames being initialised with the size of the pointer i…

…nstead of the actual frame size due to a sizeof() error. Spotted by Coverity
  • Loading branch information...
1 parent 6655d24 commit 3bdc0d1a84ea5a18327958aa56e56d21ee51a959 @stuartm stuartm committed May 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/videooutbase.cpp
View
2 mythtv/libs/libmythtv/videooutbase.cpp
@@ -1127,7 +1127,7 @@ void VideoOutput::ShowPIP(VideoFrame *frame,
pipw = pip_display_size.width();
piph = pip_display_size.height();
- init(&pip_tmp_image, FMT_YV12, pipbuf, pipw, piph, sizeof(pipbuf));
+ init(&pip_tmp_image, FMT_YV12, pipbuf, pipw, piph, sizeof(*pipbuf));
}
}

0 comments on commit 3bdc0d1

Please sign in to comment.