]> git.sesse.net Git - ffmpeg/commit
avformat/avformat: Update av_read_frame() documentation
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 1 Dec 2019 07:45:05 +0000 (08:45 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 29 Mar 2020 01:58:30 +0000 (03:58 +0200)
commit4cb0dda55537fe5248d8b1e255e7015805ea0f8f
tree81c868fde1d2079a7de98b7c76cfc8b39e1fd546
parent3c138e5ceb487490f88015b1694ce34c1393736c
avformat/avformat: Update av_read_frame() documentation

This commit updates the documentation of av_read_frame() to match its
actual behaviour in several ways:

1. On success, av_read_frame() always returns refcounted packets.
2. It can handle uninitialized packets.
3. On error, it always returns blank packets.

This will allow callers to not initialize or unref unnecessarily.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
doc/APIchanges
libavformat/avformat.h