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>
Tue, 2 Sep 2014 09:38:36 +0000 (11:38 +0200)
commit58e0402e02ae5e466c33b9465c1465fdee68d342
treeb4ce70493e18386e583e4e845a75f7be3f659217
parent35469835bb2960f85b6c4acf19632333307937e7
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>
libavformat/segment.c