mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-02 18:48:27 +00:00
avcodec/packet: Improve documentation of av_packet_get_side_data
Document that it also sets the size in case the desired side data is absent (if the pointer has been supplied). Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
b054a3a216
commit
45ddf06f54
@ -580,7 +580,8 @@ int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
|
|||||||
*
|
*
|
||||||
* @param pkt packet
|
* @param pkt packet
|
||||||
* @param type desired side information type
|
* @param type desired side information type
|
||||||
* @param size pointer for side information size to store (optional)
|
* @param size If supplied, *size will be set to the size of the side data
|
||||||
|
* or to zero if the desired side data is not present.
|
||||||
* @return pointer to data if present or NULL otherwise
|
* @return pointer to data if present or NULL otherwise
|
||||||
*/
|
*/
|
||||||
uint8_t* av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type,
|
uint8_t* av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type,
|
||||||
|
Loading…
Reference in New Issue
Block a user