From 476732648431f3f132230b3b4ec4458ddc78335c Mon Sep 17 00:00:00 2001 From: Sune1337 Date: Fri, 25 Apr 2014 22:27:56 +0200 Subject: [PATCH] A variable was referenced as a pointer when it was not. --- src/zm_mpeg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_mpeg.cpp b/src/zm_mpeg.cpp index 8b6b72d7b..bc5ec7c1a 100644 --- a/src/zm_mpeg.cpp +++ b/src/zm_mpeg.cpp @@ -611,7 +611,7 @@ double VideoStream::ActuallyEncodeFrame( const uint8_t *buffer, int buffer_size, #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 2, 1) pkt.flags |= AV_PKT_FLAG_KEY; #else - pkt->flags |= PKT_FLAG_KEY; + pkt.flags |= PKT_FLAG_KEY; #endif pkt.stream_index = ost->index; pkt.data = (uint8_t *)opicture_ptr; @@ -642,7 +642,7 @@ double VideoStream::ActuallyEncodeFrame( const uint8_t *buffer, int buffer_size, #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,2,1) pkt.flags |= AV_PKT_FLAG_KEY; #else - pkt->flags |= PKT_FLAG_KEY; + pkt.flags |= PKT_FLAG_KEY; #endif }