As documented, `av_dup_packet` is broken by design, `av_packet_ref` matches the AVFrame ref-counted API and can be safely used instead.
Showing the changes to doc/APIchanges (1 of 5 files). Show all
Unified · Split
| @@ -13,9 +13,11 @@ libavutil: 2015-08-28 · 12 unmodified lines | ||
| 13 | 13 | |
| 14 | 14 | API changes, most recent first: |
| 15 | 15 | |
| 16 | −2015-xx-xx - xxxxxxx - lavc 57.7.0 - avcodec.h | |
| 17 | − Deprecate av_free_packet(). Use av_packet_unref() as replacement, | |
| 18 | − it resets the packet in a more consistent way. | |
| 16 | +2015-xx-xx - lavc 57.7.0 - avcodec.h | |
| 17 | + xxxxxx - Deprecate av_free_packet(). Use av_packet_unref() as replacement, | |
| 18 | + it resets the packet in a more consistent way. | |
| 19 | + xxxxxx - Deprecate av_dup_packet(), it is a no-op for most cases. | |
| 20 | + Use av_packet_ref() to make a non-refcounted AVPacket refcounted. | |
| 19 | 21 | |
| 20 | 22 | 2015-xx-xx - xxxxxxx - lavc 57.5.0 - avcodec.h |
| 21 | 23 | Add data and linesize array to AVSubtitleRect, to be used instead of |