]> granicus.if.org Git - handbrake/commit
libhb: fix segfault when decoding empty audio track
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 29 May 2018 19:59:42 +0000 (12:59 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 29 May 2018 20:03:20 +0000 (13:03 -0700)
commitdfce21105beecf678cefa6569a96a05c50064db1
tree65c423473b8707bff3cd1e48fc72ba3cb07f181b
parentb3d45c2c22a3e759ec8d569fd5de9b213c521863
libhb: fix segfault when decoding empty audio track

If an audio track exists, but we receive no audio packets for that
track, this causes a condition that results in a NULL dereference.

Fixes https://github.com/HandBrake/HandBrake/issues/1358

(cherry picked from commit 4b3aa7b434e5af45997cdd8c34a310aa654a304b)
libhb/decavcodec.c