On 25/02/16 16:05, Anton Khirnov wrote:
> It currently just calls av_init_packet(), which does not touch those
> fields.
> ---
> libavcodec/avpacket.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
> index 3f8e163..59fc6f2 100644
> --- a/libavcodec/avpacket.c
> +++ b/libavcodec/avpacket.c
> @@ -398,6 +398,8 @@ void av_packet_move_ref(AVPacket *dst, AVPacket *src)
> {
> *dst = *src;
> av_init_packet(src);
> + src->data = NULL;
> + src->size = 0;
> }
>
> void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational
> dst_tb)
>
Ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel