26 uint8_t **poutbuf,
int *poutbuf_size,
27 const uint8_t *buf,
int buf_size,
int keyframe){
28 if (buf_size > 0xffff)
return 0;
29 *poutbuf_size = buf_size + 2;
32 memcpy(*poutbuf + 2, buf, buf_size);
43 uint8_t **poutbuf,
int *poutbuf_size,
44 const uint8_t *buf,
int buf_size,
int keyframe){
45 if (buf_size < 2)
return 0;
48 memcpy(*poutbuf, buf + 2, *poutbuf_size);
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_RB16
AVBitStreamFilter ff_text2movsub_bsf
static int text2movsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
AVBitStreamFilter ff_mov2textsub_bsf
main external API structure.
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
static int mov2textsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...