avformat/ac3dec: Check buf2 before adding 16 in ac3_eac3_probe()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Oct 2017 14:16:46 +0000 (16:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Oct 2017 18:24:04 +0000 (20:24 +0200)
commiteb54efc1e1aafe18d0a8a0c72a78314645bccc83
tree72f1af0a3e90f02d4b1f524edb762ea798c6f42f
parent80137531139588774e048d6e1dae34ab5cbbbfa2
avformat/ac3dec: Check buf2 before adding 16 in ac3_eac3_probe()

This is needed since e0250cf3651e6417e0117486a7816b45fb2d34cd as that uses end-buf2
Note, there are more than 16 bytes allocated beyond "end"

Fixes: regression (segfault) with probetest

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/ac3dec.c