[FFmpeg-devel] undefined references to get_buffer
Kevin Kowalewski
kowalewski.kevin.bulk at gmail.com
Wed Jun 13 22:09:59 CEST 2012
Hi,
I'm trying to upgrade the FFMpeg source used with one of our projects but
get_buffer has gone away. I'm not 100% sure on which method to replace it
with. Here are two contexts in which its used, any help is appreciated.
I look forward to hearing from you soon,
Thanks,
Kevin
cur_offset = avio_tell(pb);
if (!para->playctrl_info.read_end_flag && (0 == pkt->data_size)) {
* rev_byte = get_buffer(pb, pbuf, para->max_raw_size);*
if ((rev_byte > 0) && (cur_offset <=
para->pFormatCtx->data_offset)) {
try_count = 0;
pkt->data_size = rev_byte;
para->read_size.total_bytes += rev_byte;
pkt->avpkt_newflag = 1;
pkt->avpkt_isvalid = 1;
do {
* read_length = get_buffer(s->pb, data + 12, read_size);*
if ((read_length <= 0) || (sync_flag == 1024)) {
if (read_length == AVERROR(EAGAIN)) {
continue;
} else {
FREE(data);
log_error("[%s]get data failed. ret=%d\n",
__FUNCTION__, read_length);
return 0;
}
} else {
break;
}
} while (retry_get_data <
am_p->playctrl_info.read_max_retry_cnt);
pkt = data;
More information about the ffmpeg-devel
mailing list