Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-27 03:56:38 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-28 05:59:15 +0300
commitc52ec0367de10f86ceb5a06d25c0f948a5897740 (patch)
treed4ec69264f36cd064583c976fc4b047ee5116de2 /doc
parente621f2b6cd95a69db637d0ed979cf9e614b58cac (diff)
avcodec/avcodec, avpacket: Return blank packet on av_packet_ref() failure
Up until now, it was completely unspecified what the content of the destination packet dst was on error. Depending upon where the error happened calling av_packet_unref() on dst might be dangerous. This commit changes this by making sure that dst is blank on error, so unreferencing it again is safe (and still pointless). This behaviour is documented. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/APIchanges4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/APIchanges b/doc/APIchanges
index 8eeaec2028..f2bb2d242b 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -15,6 +15,10 @@ libavutil: 2017-10-21
API changes, most recent first:
+2020-03-27 - xxxxxxxxxx - lavc 58.77.100 - avcodec.h
+ av_packet_ref() now guarantees to return the destination packet
+ in a blank state on error.
+
2020-03-10 - xxxxxxxxxx - lavc 58.75.100 - avcodec.h
Add AV_PKT_DATA_ICC_PROFILE.