"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/avpacket.c" between
libav-12.tar.gz and libav-12.1.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

avpacket.c  (libav-12):avpacket.c  (libav-12.1)
skipping to change at line 243 skipping to change at line 243
av_packet_free_side_data(pkt); av_packet_free_side_data(pkt);
} }
} }
FF_ENABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS
#endif #endif
int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
uint8_t *data, size_t size) uint8_t *data, size_t size)
{ {
AVPacketSideData *tmp;
int elems = pkt->side_data_elems; int elems = pkt->side_data_elems;
if ((unsigned)elems + 1 > INT_MAX / sizeof(*pkt->side_data)) if ((unsigned)elems + 1 > INT_MAX / sizeof(*pkt->side_data))
return AVERROR(ERANGE); return AVERROR(ERANGE);
pkt->side_data = av_realloc(pkt->side_data, tmp = av_realloc(pkt->side_data, (elems + 1) * sizeof(*tmp));
(elems + 1) * sizeof(*pkt->side_data)); if (!tmp)
if (!pkt->side_data)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
pkt->side_data = tmp;
pkt->side_data[elems].data = data; pkt->side_data[elems].data = data;
pkt->side_data[elems].size = size; pkt->side_data[elems].size = size;
pkt->side_data[elems].type = type; pkt->side_data[elems].type = type;
pkt->side_data_elems++; pkt->side_data_elems++;
return 0; return 0;
} }
uint8_t *av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, uint8_t *av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
int size) int size)
 End of changes. 3 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS