Mercurial > libavformat.hg
diff utils.c @ 2139:12a46571c0c9 libavformat
Export av_init_packet
| author | ramiro |
|---|---|
| date | Mon, 04 Jun 2007 16:52:02 +0000 |
| parents | f778bf13d4a5 |
| children | 8c9464575611 |
line wrap: on
line diff
--- a/utils.c Mon Jun 04 14:54:33 2007 +0000 +++ b/utils.c Mon Jun 04 16:52:02 2007 +0000 @@ -176,6 +176,17 @@ pkt->data = NULL; pkt->size = 0; } +void av_init_packet(AVPacket *pkt) +{ + pkt->pts = AV_NOPTS_VALUE; + pkt->dts = AV_NOPTS_VALUE; + pkt->pos = -1; + pkt->duration = 0; + pkt->flags = 0; + pkt->stream_index = 0; + pkt->destruct= av_destruct_packet_nofree; +} + int av_new_packet(AVPacket *pkt, int size) { uint8_t *data;
