if(got_packet) {
av_dup_packet(pkt);
} else {
- pkt->data = pkt->size = 0;
+ pkt->data = NULL;
+ pkt->size = 0;
}
pthread_mutex_lock(&c->finished_task_mutex);
c->finished_tasks[task.index].outdata = pkt; pkt = NULL;
if(!new)
return AVERROR(ENOMEM);
pthread_mutex_lock(&c->buffer_mutex);
- ret = c->parent_avctx->get_buffer(c->parent_avctx, new);
+ ret = ff_get_buffer(c->parent_avctx, new);
pthread_mutex_unlock(&c->buffer_mutex);
if(ret<0)
return ret;