add options for Decode reuse Frame Object, prevent python GC using large of memory.
Usage:
import av
in_container = av.open(file="test.flv", format='flv')
for packet in in_container.demux():
if packet.stream.type == "video":
for frame in packet.stream.codec_context.decode(packet, reuse=True):
print(frame, frame.format)
if packet.stream.type == "audio":
for frame in packet.stream.codec_context.decode(packet, reuse=True):
print(frame, frame.format)