avformat/oggenc: Check segments_count for headers too
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Aug 2015 02:08:42 +0000 (04:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Aug 2015 02:28:21 +0000 (04:28 +0200)
commit81a8701eb52d2b6469ae16ef442ce425388141b7
tree59b974b7ccaf0db2696611f92f8cc8644f8076ed
parentda0e76955a08249c593861a5088c20c50a48c6bb
avformat/oggenc: Check segments_count for headers too

Fixes infinite loop and segfault in ogg_buffer_data()
Fixes Ticket4806

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