packetizer/h264: fix resource deallocation during Close
commit8cc427c799140d71c761d1b29727dd2cf73e62ed
authorFilip Roséen <filip@atch.se>
Tue, 7 Feb 2017 01:35:46 +0000 (7 02:35 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 8 Feb 2017 13:37:40 +0000 (8 14:37 +0100)
tree0f1da10c8392a091114e7a3da9dccfa881244a64
parent67c96dbb5f0047e9a24c2e6e887c92c785ead846
packetizer/h264: fix resource deallocation during Close

The previous loop condition suffers from an off-by-one error, meaning
that the last resource in p_sys->pp_sps and p_sys->pp_pps would never
be released if populated.

fixes #17987

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/packetizer/h264.c