Skip to content

Commit e28c566

Browse files
committed
Remove the avcodec_free_context(&codec_context) -- seems to cause a double free.
1 parent bde609c commit e28c566

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rtp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,10 +2094,10 @@ void avcodec_alloc_context3_cleanup_handler(void *arg) {
20942094
av_free(codec_context);
20952095
}
20962096

2097-
void avcodec_open2_cleanup_handler(void *arg) {
2098-
debug(3, "avcodec_open2_cleanup_handler");
2099-
AVCodecContext *codec_context = arg;
2100-
avcodec_free_context(&codec_context);
2097+
void avcodec_open2_cleanup_handler(__attribute__((unused)) void *arg) {
2098+
debug(3, "avcodec_open2_cleanup_handler -- does nothing right now");
2099+
// AVCodecContext *codec_context = arg;
2100+
// avcodec_free_context(&codec_context);
21012101
}
21022102

21032103
void av_parser_init_cleanup_handler(void *arg) {

0 commit comments

Comments
 (0)