avformat/pjsdec: dont increase pointer when its already at the end in read_ts()
authorClément Bœsch <u@pkh.me>
Fri, 10 Jan 2014 00:51:22 +0000 (01:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 13 Jan 2014 15:10:30 +0000 (16:10 +0100)
commitb6af89be6a2b419720b2be399de75924388777b0
treed77019d1470bb37d100375dd5ff28e5ba3972c1b
parent57824d1ba6174a44668ff333318ab58bd8fbd8f3
avformat/pjsdec: dont increase pointer when its already at the end in read_ts()

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f91f2de7764_2649_PJS_capability_tester.pjs
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b84a7330af41cec93384bf59ed68c67b09d105cd)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/pjsdec.c