Open Justme0 opened 6 months ago
In frame_go112.go https://github.com/3d0c/gmf/blob/master/frame_go112.go#L210
Firstly allocate heap memory. If avcodec_fill_audio_frame() fail, the heap memory will leak:
avcodec_fill_audio_frame()
(BTW, I miss RAII in C++)
In frame_go112.go https://github.com/3d0c/gmf/blob/master/frame_go112.go#L210
Firstly allocate heap memory. If
avcodec_fill_audio_frame()
fail, the heap memory will leak:(BTW, I miss RAII in C++)