segment: don't access outside seg->frames array
authorMika Raento <mika.raento@elisa.fi>
Mon, 1 Sep 2014 17:10:03 +0000 (20:10 +0300)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 20 Sep 2014 16:40:32 +0000 (18:40 +0200)
commit0484d7ad7ef7f4ce51525a95cc5b74d7e6c213a0
treeda4de481c9165856e8cabde9887325a4c6729a1d
parent85b829bff9c31178b2d70e39279a397795ce25cf
segment: don't access outside seg->frames array

Fixes wrong number of segments output and undefined memory access.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 58e0402e02ae5e466c33b9465c1465fdee68d342)

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