From 2b4aeb90f3ec8aca37ac133e8a2fd154296618e8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 1 Apr 2020 20:35:43 +0200 Subject: wip --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index a6ec141..ede803b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -253,7 +253,7 @@ static void receive_frames(AVCodecContext *av_codec_context, AVStream *stream, if (av_write_frame(av_format_context, &av_packet) < 0) { fprintf(stderr, "Error: Failed to write frame to muxer\n"); } - // av_packet_unref(&av_packet); + av_packet_unref(&av_packet); } else if (res == AVERROR(EAGAIN)) { // we have no packet // fprintf(stderr, "No packet!\n"); break; @@ -265,7 +265,7 @@ static void receive_frames(AVCodecContext *av_codec_context, AVStream *stream, break; } } - av_packet_unref(&av_packet); + //av_packet_unref(&av_packet); } static AVStream *add_stream(AVFormatContext *av_format_context, AVCodec **codec, -- cgit v1.2.3