Allocate the payload of a packet and initialize its fields with default values.
@param pkt packet @param size wanted payload size @return 0 if OK, AVERROR_xxx otherwise
See Implementation
Allocate the payload of a packet and initialize its fields with default values.
@param pkt packet @param size wanted payload size @return 0 if OK, AVERROR_xxx otherwise