diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2020-03-31 09:06:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-03 20:50:49 +0200 |
commit | 259026b45758295d045e91b3a4456bd2c0249c47 (patch) | |
tree | 6dfd2d8424297ee9b8c315bcf503fcc1c75cb19f /libavutil | |
parent | 805ec95f8eb5664bf11c4c9190c868fd5521d80a (diff) | |
download | ffmpeg-259026b45758295d045e91b3a4456bd2c0249c47.tar.gz |
avformat/avformat: Clarify documentation of av_interleaved_write_frame()
The earlier documentation claimed that av_interleaved_write_frame()
always orders by dts, which is not necessarily true when using muxers
with custom interleavement functions or the audio_preload option.
Furthermore, the documentation stated that libavformat takes ownership
of the reference of the provided packet (if it is refcounted) and that
the caller may not access the data through this reference after the
function returns. This suggests that the returned packet is not blank,
but instead still contains some set, but invalid fields, which implies
that it would be dangerous to unreference this packet again.
But this is not true: av_interleaved_write_frame()'s actual behaviour
is to always output blank packet (even on error). This commit documents
this fact so that callers know that they can directly reuse this packet.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil')
0 files changed, 0 insertions, 0 deletions