Re: [FFmpeg-devel] [PATCH 3/3] avformat/hls: Use av_init_pkt() directly

2020-08-16 Thread Steven Liu
Andreas Rheinhardt 于2020年8月15日周六 上午5:21写道: > > and remove reset_packet(). The packet's data pointer is already zeroed, > so the only thing that reset_packet() does that av_init_pkt() doesn't is > redundant. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/hls.c | 12 +--- > 1 fi

[FFmpeg-devel] [PATCH 3/3] avformat/hls: Use av_init_pkt() directly

2020-08-14 Thread Andreas Rheinhardt
and remove reset_packet(). The packet's data pointer is already zeroed, so the only thing that reset_packet() does that av_init_pkt() doesn't is redundant. Signed-off-by: Andreas Rheinhardt --- libavformat/hls.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lib