avformat/flvdec: splitting add_keyframes_index() out from parse_keyframes_index()