Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

severe memory leak libyami_h264 #35

@nulijiabei

Description

@nulijiabei
  1. pFormatCtx = avformat_alloc_context();
  2. avformat_open_input(&pFormatCtx
  3. avformat_find_stream_info(pFormatCtx
  4. avcodec_find_decoder_by_name("libyami_h264");
  5. ...

The memory will not be recycled after it is released

    av_packet_free(&avpkt); 
    av_frame_free(&vFrame);
    av_frame_free(&aFrame);
    avcodec_close(vCodecCtx);
    avcodec_close(aCodecCtx);
    avformat_close_input(&pFormatCtx);

run inside a thread

No such memory leak will occur with soft solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions