Andreas Rheinhardt
790f793844
avutil/common: Don't auto-include mem.h
...
There are lots of files that don't need it: The number of object
files that actually need it went down from 2011 to 884 here.
Keep it for external users in order to not cause breakages.
Also improve the other headers a bit while just at it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Michael Niedermayer
ac3e6b74bd
avformat/imf_cpl: Replace NULL content_title_utf8 by ""
...
Suggested-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Reviewed-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
1 year ago
Michael Niedermayer
509ce40f18
avformat/imf_cpl: xmlNodeListGetString() can return NULL
...
Fixes: NULL pointer dereference
Fixes: 60166/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5998301577871360
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
1 year ago
Pierre-Anthony Lemieux
0f2f0dd5b4
avformat/imf: clean-up logging
...
* remove logging to NULL
* remove extraneous logging
1 year ago
Pierre-Anthony Lemieux
23d968d55a
avformat/imf: fix invalid resource handling
2 years ago
Pierre-Anthony Lemieux
89a49fd5a9
avformat/imfdec: variable initialiaztion cosmetics
2 years ago
Pierre-Anthony Lemieux
94922f6cab
avformat/imfdec: use CPL start timecode if available
...
The IMF CPL contains an optional timecode start address. This patch reads the
latter, if present, into the context's timecode metadata parameter.
This addresses https://trac.ffmpeg.org/ticket/9842 .
2 years ago
Andreas Rheinhardt
61fa1e14e4
avformat/imf_cpl: Check the right variable
...
Fixes Coverity issue #1512407 .
Reviewed-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Pierre-Anthony Lemieux
751549af9b
avformat/imf: refactor to use avutil/uuid
2 years ago
Marton Balint
8a9d3d3dec
avformat/imf_cpl: do not use filesize when reading XML file
...
Similar to the earlier patch applied to imfdec.
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Pierre-Anthony Lemieux
74afc3c650
avformat/imf: Fix indentation
...
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
76ffe1c2f1
avformat/imf: fix CPL parsing error handling
...
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
c1b55cb70c
avformat/imf: fix error CPL root element is absent
...
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
73f6cce936
avformat/imf: Demuxer
...
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago