ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Thu Feb 8 16:04:19 2024 +0100| [3371250c328857cb1b55f7a7f6e4bd0f566adcc4] | committer: Andreas Rheinhardt
avformat/rcwtenc: Pass RCWTContext directly in rcwt_init_cluster() It does not use the AVFormatContext at all. Reviewed-by: Marth64 <mart...@proxyid.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3371250c328857cb1b55f7a7f6e4bd0f566adcc4 --- libavformat/rcwtenc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libavformat/rcwtenc.c b/libavformat/rcwtenc.c index 2ee4aae6bf..a6060ba7c4 100644 --- a/libavformat/rcwtenc.c +++ b/libavformat/rcwtenc.c @@ -70,10 +70,8 @@ typedef struct RCWTContext { uint8_t cluster_buf[RCWT_CLUSTER_MAX_BLOCKS * RCWT_BLOCK_SIZE]; } RCWTContext; -static void rcwt_init_cluster(AVFormatContext *avf) +static void rcwt_init_cluster(RCWTContext *rcwt) { - RCWTContext *rcwt = avf->priv_data; - rcwt->cluster_pos = 0; rcwt->cluster_pts = AV_NOPTS_VALUE; } @@ -88,7 +86,7 @@ static void rcwt_flush_cluster(AVFormatContext *avf) avio_write(avf->pb, rcwt->cluster_buf, rcwt->cluster_pos); } - rcwt_init_cluster(avf); + rcwt_init_cluster(rcwt); } static int rcwt_write_header(AVFormatContext *avf) @@ -117,7 +115,7 @@ static int rcwt_write_header(AVFormatContext *avf) avio_wb16(avf->pb, 0x000); avio_w8(avf->pb, 0x00); - rcwt_init_cluster(avf); + rcwt_init_cluster(avf->priv_data); return 0; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".