forked from FFmpeg/FFmpeg
Merge commit 'c23c96b638cbf6c489fd301e6b3d5555632fba37'
* commit 'c23c96b638cbf6c489fd301e6b3d5555632fba37': lavf: add av_stream_get_side_data Conflicts: doc/APIchanges libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
7d25af1547
4 changed files with 32 additions and 2 deletions
|
@ -15,6 +15,10 @@ libavutil: 2012-10-22
|
||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2014-05-19 - xxxxxxx - lavf 55.18.0 - avformat.h
|
||||||
|
Add av_stream_get_side_data() to access stream-level side data
|
||||||
|
in the same way as av_packet_get_side_data().
|
||||||
|
|
||||||
2014-05-xx - xxxxxxx - lavu 52.86.100 - fifo.h
|
2014-05-xx - xxxxxxx - lavu 52.86.100 - fifo.h
|
||||||
Add av_fifo_alloc_array() function.
|
Add av_fifo_alloc_array() function.
|
||||||
|
|
||||||
|
|
|
@ -1771,6 +1771,17 @@ const AVClass *avformat_get_class(void);
|
||||||
*/
|
*/
|
||||||
AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c);
|
AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get side information from stream.
|
||||||
|
*
|
||||||
|
* @param stream stream
|
||||||
|
* @param type desired side information type
|
||||||
|
* @param size pointer for side information size to store (optional)
|
||||||
|
* @return pointer to data if present or NULL otherwise
|
||||||
|
*/
|
||||||
|
uint8_t *av_stream_get_side_data(AVStream *stream,
|
||||||
|
enum AVPacketSideDataType type, int *size);
|
||||||
|
|
||||||
AVProgram *av_new_program(AVFormatContext *s, int id);
|
AVProgram *av_new_program(AVFormatContext *s, int id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4665,3 +4665,18 @@ int ff_generate_avci_extradata(AVStream *st)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t *av_stream_get_side_data(AVStream *st, enum AVPacketSideDataType type,
|
||||||
|
int *size)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < st->nb_side_data; i++) {
|
||||||
|
if (st->side_data[i].type == type) {
|
||||||
|
if (size)
|
||||||
|
*size = st->side_data[i].size;
|
||||||
|
return st->side_data[i].data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
#include "libavutil/version.h"
|
#include "libavutil/version.h"
|
||||||
|
|
||||||
#define LIBAVFORMAT_VERSION_MAJOR 55
|
#define LIBAVFORMAT_VERSION_MAJOR 55
|
||||||
#define LIBAVFORMAT_VERSION_MINOR 38
|
#define LIBAVFORMAT_VERSION_MINOR 39
|
||||||
#define LIBAVFORMAT_VERSION_MICRO 101
|
#define LIBAVFORMAT_VERSION_MICRO 100
|
||||||
|
|
||||||
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
||||||
LIBAVFORMAT_VERSION_MINOR, \
|
LIBAVFORMAT_VERSION_MINOR, \
|
||||||
|
|
Loading…
Add table
Reference in a new issue