[FFmpeg-devel] [FFmpeg-cvslog] avutil/opt: add missing case for AV_OPT_TYPE_CHLAYOUT in av_opt_free()

Michael Niedermayer michael at niedermayer.cc
Sun Mar 20 13:29:04 EET 2022


On Fri, Mar 18, 2022 at 10:00:17PM +0000, James Almer wrote:
> ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Mar 18 18:46:40 2022 -0300| [327efa66331ebdc0087c6b656059a8df2f404019] | committer: James Almer
> 
> avutil/opt: add missing case for AV_OPT_TYPE_CHLAYOUT in av_opt_free()
> 
> Fixes potential memleaks for existing options of this type.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=327efa66331ebdc0087c6b656059a8df2f404019
> ---
> 
>  libavutil/opt.c | 4 ++++
>  1 file changed, 4 insertions(+)

this removes most timestamps from
libavformat/tests/seek ~/tickets/1605/08.rm -frames 10

ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.023000 pts: 0.023000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.046000 pts: 0.046000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.069000 pts: 0.069000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.092000 pts: 0.092000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.115000 pts: 0.115000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.138000 pts: 0.138000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.161000 pts: 0.161000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.184000 pts: 0.184000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.207000 pts: 0.207000 pos:     -1 size:    32
ret: 0         st:-1 flags:0  ts:-1.000000
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: NOPTS    pts: NOPTS    pos:     -1 size:    32
...

vs.
ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.023000 pts: 0.023000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.046000 pts: 0.046000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.069000 pts: 0.069000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.092000 pts: 0.092000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.115000 pts: 0.115000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.138000 pts: 0.138000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.161000 pts: 0.161000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.184000 pts: 0.184000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.207000 pts: 0.207000 pos:     -1 size:    32
ret: 0         st:-1 flags:0  ts:-1.000000
ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.023000 pts: 0.023000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.046000 pts: 0.046000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.069000 pts: 0.069000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.092000 pts: 0.092000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.115000 pts: 0.115000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.138000 pts: 0.138000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.161000 pts: 0.161000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.184000 pts: 0.184000 pos:     -1 size:    32
ret: 0         st: 0 flags:1 dts: 0.207000 pts: 0.207000 pos:     -1 size:    32


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"You are 36 times more likely to die in a bathtub than at the hands of a
terrorist. Also, you are 2.5 times more likely to become a president and
2 times more likely to become an astronaut, than to die in a terrorist
attack." -- Thoughty2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220320/224b5e43/attachment.sig>


More information about the ffmpeg-devel mailing list