avcodec/vt_hevc: fix crash if vps_list[0] or sps_list[0] are null master
authorRodger Combs <rodger.combs@gmail.com>
Thu, 10 Jan 2019 02:26:41 +0000 (21:26 -0500)
committerAman Gupta <aman@tmm1.net>
Tue, 19 Mar 2019 21:56:21 +0000 (14:56 -0700)
commitce6301a46fae4858218c7435f9e7fc94d9dd39b2
treee5a63dc0059cf24653ccba49a5048563b9fcada6
parent41ef6dd67d48f13a18ba0fa3e2dc1bc448a0ecbb
avcodec/vt_hevc: fix crash if vps_list[0] or sps_list[0] are null

Instead of assuming id 0 is used, use the same logic as used for PPS,
where all available entries in the list are emitted.

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/videotoolbox.c