If non-zero, the decoded audio and video frames returned from
avcodec_decode_video2() and avcodec_decode_audio4() are reference-counted
and are valid indefinitely. The caller must free them with
av_frame_unref() when they are not needed anymore.
Otherwise, the decoded frames must not be freed by the caller and are
only valid until the next decode call.
This is always automatically enabled if avcodec_receive_frame() is used.
- encoding: unused
- decoding: set by the caller before avcodec_open2().
If non-zero, the decoded audio and video frames returned from avcodec_decode_video2() and avcodec_decode_audio4() are reference-counted and are valid indefinitely. The caller must free them with av_frame_unref() when they are not needed anymore. Otherwise, the decoded frames must not be freed by the caller and are only valid until the next decode call.
This is always automatically enabled if avcodec_receive_frame() is used.
- encoding: unused - decoding: set by the caller before avcodec_open2().