Re: [FFmpeg-devel] [PATCH] lavc: vt_hevc: fix crash if vps_list[0] or sps_list[0] are null

2019-01-10 Thread Aman Gupta
On Wed, Jan 9, 2019 at 6:32 PM Rodger Combs wrote: > Instead of assuming id 0 is used, use the same logic as used for PPS, > where all available entries in the list are emitted. > Patch LGTM. Apart from the SEGV fix, this probably helps VideoToolbox decode certain types of samples with multiple

[FFmpeg-devel] [PATCH] lavc: vt_hevc: fix crash if vps_list[0] or sps_list[0] are null

2019-01-09 Thread Rodger Combs
Instead of assuming id 0 is used, use the same logic as used for PPS, where all available entries in the list are emitted. --- libavcodec/videotoolbox.c | 86 ++- 1 file changed, 40 insertions(+), 46 deletions(-) diff --git a/libavcodec/videotoolbox.c