If we already tried decoding a packet, don't try again. Also we really shouldn't be decoding in videostore.

This commit is contained in:
Isaac Connor
2021-03-22 12:05:05 -04:00
parent 3f3bc50acb
commit 2d4b4b6022

View File

@@ -979,7 +979,7 @@ int VideoStore::writeVideoFramePacket(ZMPacket *zm_packet) {
);
} else if ( !zm_packet->in_frame ) {
Debug(4, "Have no in_frame");
if ( zm_packet->packet.size ) {
if (zm_packet->packet.size and !zm_packet->decoded) {
Debug(4, "Decoding");
if ( !zm_packet->decode(video_in_ctx) ) {
Debug(2, "unable to decode yet.");