Lines Matching refs:data
39 static void latm_free_context(PayloadContext *data)
41 if (!data)
43 if (data->dyn_buf) {
45 avio_close_dyn_buf(data->dyn_buf, &p);
48 av_free(data->buf);
49 av_free(data);
52 static int latm_parse_packet(AVFormatContext *ctx, PayloadContext *data,
60 if (!data->dyn_buf || data->timestamp != *timestamp) {
61 av_freep(&data->buf);
62 if (data->dyn_buf)
63 avio_close_dyn_buf(data->dyn_buf, &data->buf);
64 data->dyn_buf = NULL;
65 av_freep(&data->buf);
67 data->timestamp = *timestamp;
68 if ((ret = avio_open_dyn_buf(&data->dyn_buf)) < 0)
71 avio_write(data->dyn_buf, buf, len);
75 av_free(data->buf);
76 data->len = avio_close_dyn_buf(data->dyn_buf, &data->buf);
77 data->dyn_buf = NULL;
78 data->pos = 0;
81 if (!data->buf) {
82 av_log(ctx, AV_LOG_ERROR, "No data available yet\n");
87 while (data->pos < data->len) {
88 uint8_t val = data->buf[data->pos++];
93 if (data->pos + cur_len > data->len) {
100 memcpy(pkt->data, data->buf + data->pos, cur_len);
101 data->pos += cur_len;
103 return data->pos < data->len;
146 AVStream *stream, PayloadContext *data,
166 PayloadContext *data, const char *line)
174 return ff_parse_fmtp(s, s->streams[st_index], data, p, parse_fmtp);