You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/graphdump: Properly initialize AVBPrint
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -31,10 +31,12 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link)
|
|||||||
{
|
{
|
||||||
char *format;
|
char *format;
|
||||||
char layout[64];
|
char layout[64];
|
||||||
AVBPrint dummy_buffer = { 0 };
|
AVBPrint dummy_buffer;
|
||||||
|
|
||||||
if (!buf)
|
if (!buf) {
|
||||||
buf = &dummy_buffer;
|
buf = &dummy_buffer;
|
||||||
|
av_bprint_init(buf, 0, AV_BPRINT_SIZE_COUNT_ONLY);
|
||||||
|
}
|
||||||
switch (link->type) {
|
switch (link->type) {
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
format = av_x_if_null(av_get_pix_fmt_name(link->format), "?");
|
format = av_x_if_null(av_get_pix_fmt_name(link->format), "?");
|
||||||
|
Reference in New Issue
Block a user