Skip to content

Commit

Permalink
Fix PIP video frames being initialised with the size of the pointer i…
Browse files Browse the repository at this point in the history
…nstead of the actual frame size due to a sizeof() error. Spotted by Coverity
  • Loading branch information
stuartm committed May 19, 2012
1 parent 6655d24 commit 3bdc0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videooutbase.cpp
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 3bdc0d1

Please sign in to comment.