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>
Fri, 3 Oct 2014 01:40:58 +0000 (03:40 +0200)
commit8df77c37584a01bcd8ac90ed4fe4d51856935cf4
treed148b2e7c7f892cfe04047091a62ef61bde62af2
parent08f56b846c23889e0a47f94d06baa3114a121b4b
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