Skip to content

Commit

Permalink
Remove the avcodec_free_context(&codec_context) -- seems to cause a d…
Browse files Browse the repository at this point in the history
…ouble free.
  • Loading branch information
mikebrady committed Jul 16, 2024
1 parent bde609c commit e28c566
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2094,10 +2094,10 @@ void avcodec_alloc_context3_cleanup_handler(void *arg) {
av_free(codec_context);
}

void avcodec_open2_cleanup_handler(void *arg) {
debug(3, "avcodec_open2_cleanup_handler");
AVCodecContext *codec_context = arg;
avcodec_free_context(&codec_context);
void avcodec_open2_cleanup_handler(__attribute__((unused)) void *arg) {
debug(3, "avcodec_open2_cleanup_handler -- does nothing right now");
// AVCodecContext *codec_context = arg;
// avcodec_free_context(&codec_context);
}

void av_parser_init_cleanup_handler(void *arg) {
Expand Down

0 comments on commit e28c566

Please sign in to comment.