Re: [FFmpeg-devel] [PATCH] Exception when frame is set NULL

2021-12-03 Thread Yy
> 2021年12月3日 下午6:04,Andreas Rheinhardt 写道: > > Yu Yang: >> fftools/ffmpegc When `ost->last_frame` is NULL, 'SEGV' occurs when >> accessing its pts. >> >> libavutil/framec `ost->last_frame` may be set NULL by av_frame_alloc(). In >> this situation, >> av_frame_unref() and av_

Re: [FFmpeg-devel] [PATCH] Exception when frame is set NULL

2021-12-03 Thread Andreas Rheinhardt
Yu Yang: > fftools/ffmpegc When `ost->last_frame` is NULL, 'SEGV' occurs when accessing > its pts. > > libavutil/framec `ost->last_frame` may be set NULL by av_frame_alloc(). In > this situation, > av_frame_unref() and av_frame_free() do nothing. Frame is > no

[FFmpeg-devel] [PATCH] Exception when frame is set NULL

2021-12-03 Thread Yu Yang
fftools/ffmpegc When `ost->last_frame` is NULL, 'SEGV' occurs when accessing its pts. libavutil/framec `ost->last_frame` may be set NULL by av_frame_alloc(). In this situation, av_frame_unref() and av_frame_free() do nothing. Frame is not released. ```c // in