aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-04-01 20:35:43 +0200
committerdec05eba <dec05eba@protonmail.com>2020-06-21 14:41:11 +0200
commit2b4aeb90f3ec8aca37ac133e8a2fd154296618e8 (patch)
tree1cb51f6e6028224767e39597cb379b651831192d /src
parente711ac7432dd2876fec9baa86fba2a88156ec7e1 (diff)
wip
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
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,