mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
libavdevice/lavfi: check avfilter_graph_dump return value
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2205fb2810
commit
19956d01cc
@ -302,9 +302,13 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
|
|||||||
|
|
||||||
if (lavfi->dump_graph) {
|
if (lavfi->dump_graph) {
|
||||||
char *dump = avfilter_graph_dump(lavfi->graph, lavfi->dump_graph);
|
char *dump = avfilter_graph_dump(lavfi->graph, lavfi->dump_graph);
|
||||||
fputs(dump, stderr);
|
if (dump != NULL) {
|
||||||
fflush(stderr);
|
fputs(dump, stderr);
|
||||||
av_free(dump);
|
fflush(stderr);
|
||||||
|
av_free(dump);
|
||||||
|
} else {
|
||||||
|
FAIL(AVERROR(ENOMEM));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fill each stream with the information in the corresponding sink */
|
/* fill each stream with the information in the corresponding sink */
|
||||||
|
Loading…
Reference in New Issue
Block a user