avcodec/packet: Accept const dictionaries in av_packet_pack_dictionary()

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-05-03 11:55:55 +02:00
parent c03d6ba2eb
commit 191be14fb6
4 changed files with 7 additions and 4 deletions
+3
View File
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28
API changes, most recent first:
2026-06-23 - xxxxxxxxxx - lavc 62.37.100 - packet.h
av_packet_pack_dictionary() now accepts const AVDictionary*.
2026-06-xx - xxxxxxxxxx - lavu 60.33.100 - frame.h
Add AV_FRAME_DATA_RAW_COLOR_PARAMS.
+1 -1
View File
@@ -316,7 +316,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type)
return NULL;
}
uint8_t *av_packet_pack_dictionary(AVDictionary *dict, size_t *size)
uint8_t *av_packet_pack_dictionary(const AVDictionary *dict, size_t *size)
{
uint8_t *data = NULL;
*size = 0;
+1 -1
View File
@@ -824,7 +824,7 @@ uint8_t* av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType
* @param size pointer to store the size of the returned data
* @return pointer to data if successful, NULL otherwise
*/
uint8_t *av_packet_pack_dictionary(AVDictionary *dict, size_t *size);
uint8_t *av_packet_pack_dictionary(const AVDictionary *dict, size_t *size);
/**
* Unpack a dictionary from side_data.
*
+2 -2
View File
@@ -29,8 +29,8 @@
#include "version_major.h"
#define LIBAVCODEC_VERSION_MINOR 36
#define LIBAVCODEC_VERSION_MICRO 101
#define LIBAVCODEC_VERSION_MINOR 37
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \