mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Add debugging to figure out cause of crash
This commit is contained in:
@@ -298,6 +298,11 @@ int Image::PopulateFrame(AVFrame *frame) const {
|
||||
|
||||
bool Image::Assign(const AVFrame *frame) {
|
||||
/* Assume the dimensions etc are correct. FIXME */
|
||||
if (!frame) {
|
||||
Error("Null frame passed to Image::Assign");
|
||||
return false;
|
||||
}
|
||||
zm_dump_video_frame(frame, "source frame in Image::Assign");
|
||||
|
||||
// Desired format
|
||||
AVPixelFormat format = (AVPixelFormat)AVPixFormat();
|
||||
|
||||
Reference in New Issue
Block a user