35#include "libavcodec/packet.h"
37#include "libavutil/common.h"
38#include "libavutil/error.h"
39#include "libavutil/frame.h"
40#include "libavutil/mem.h"
56 ObjPool *op = av_mallocz(
sizeof(*op));
75 for (
unsigned int i = 0; i < op->
pool_count; i++)
89 return *obj ? 0 : AVERROR(ENOMEM);
109 return av_packet_alloc();
113 return av_frame_alloc();
118 av_packet_unref(obj);
127 AVPacket *pkt = *obj;
128 av_packet_free(&pkt);
133 AVFrame *frame = *obj;
134 av_frame_free(&frame);