libavcodec/avpacket.c File Reference

#include "avcodec.h"

Go to the source code of this file.


void av_destruct_packet_nofree (AVPacket *pkt)
void av_destruct_packet (AVPacket *pkt)
 Default packet destructor.
void av_init_packet (AVPacket *pkt)
 Initialize optional fields of a packet with default values.
int av_new_packet (AVPacket *pkt, int size)
 Allocate the payload of a packet and initialize its fields with default values.
void av_shrink_packet (AVPacket *pkt, int size)
 Reduce packet size, correctly zeroing padding.
int av_dup_packet (AVPacket *pkt)
void av_free_packet (AVPacket *pkt)
 Free a packet.

Function Documentation

void av_destruct_packet ( AVPacket pkt  ) 

Default packet destructor.

Definition at line 30 of file avpacket.c.

Referenced by av_dup_packet(), av_new_packet(), matroska_merge_packets(), new_pes_packet(), output_packet(), vfw_read_close(), and write_frame().

void av_destruct_packet_nofree ( AVPacket pkt  ) 

use NULL instead

Definition at line 25 of file avpacket.c.

Referenced by av_dup_packet().

int av_dup_packet ( AVPacket pkt  ) 

This is a hack - the packet memory allocation stuff is broken. The packet is allocated if it was not really allocated.

Definition at line 74 of file avpacket.c.

Referenced by av_find_stream_info(), av_read_frame(), ff_interleave_add_packet(), and packet_queue_put().

void av_free_packet ( AVPacket pkt  ) 

void av_init_packet ( AVPacket pkt  ) 

int av_new_packet ( AVPacket pkt,
int  size 

void av_shrink_packet ( AVPacket pkt,
int  size 

Reduce packet size, correctly zeroing padding.

pkt packet
size new size

Definition at line 67 of file avpacket.c.

Referenced by av_get_packet(), cin_read_packet(), nuv_packet(), and yop_read_packet().

Generated on Fri Oct 26 02:36:51 2012 for FFmpeg by  doxygen 1.5.8