From 3b8266a6f0dc0a54a58d4dac6646e2f9abae0514 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 7 Jan 2021 09:41:08 -0500 Subject: [PATCH] add missing and mix order of Packet initializers --- src/zm_packet.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/zm_packet.h b/src/zm_packet.h index b9d69128a..82c3abdac 100644 --- a/src/zm_packet.h +++ b/src/zm_packet.h @@ -37,14 +37,14 @@ class ZMPacket { std::recursive_mutex mutex; int keyframe; - AVPacket packet; // Input packet, undecoded - AVFrame *in_frame; // Input image, decoded Theoretically only filled if needed. - AVFrame *out_frame; // Input image, decoded Theoretically only filled if needed. - uint8_t *buffer; - Image *image; // Our internal image object representing this frame - Image *analysis_image; // Our internal image object representing this frame - int score; + AVPacket packet; // Input packet, undecoded + AVFrame *in_frame; // Input image, decoded Theoretically only filled if needed. + AVFrame *out_frame; // output image, Only filled if needed. struct timeval *timestamp; + uint8_t *buffer; // buffer used in image + Image *image; + Image *analysis_image; + int score; AVMediaType codec_type; int image_index; int codec_imgsize;