Re: [FFmpeg-devel] [PATCH v2] fftools/cmdutils: Avoid crash when opts is empty

2021-12-05 Thread Yy
> 2021年12月5日 下午6:56,Andreas Rheinhardt 写道: > > Yu Yang: >> Opts is assigned by setup_find_stream_info_opts(). Could not get opts when >> nb_streams == 0. >> It should not return NULL but print AV_LOG_ERROR. when no alloc memory for >> stream options, >> it also need return an error to avoid c

Re: [FFmpeg-devel] [PATCH v2] fftools/cmdutils: Avoid crash when opts is empty

2021-12-05 Thread Andreas Rheinhardt
Yu Yang: > Opts is assigned by setup_find_stream_info_opts(). Could not get opts when > nb_streams == 0. > It should not return NULL but print AV_LOG_ERROR. when no alloc memory for > stream options, > it also need return an error to avoid crash when free. In total, > setup_find_stream_info_opts

[FFmpeg-devel] [PATCH v2] fftools/cmdutils: Avoid crash when opts is empty

2021-12-04 Thread Yu Yang
Opts is assigned by setup_find_stream_info_opts(). Could not get opts when nb_streams == 0. It should not return NULL but print AV_LOG_ERROR. when no alloc memory for stream options, it also need return an error to avoid crash when free. In total, setup_find_stream_info_opts() should not return