aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorTristan Matthews <tmatth@videolan.org>2025-05-22 12:57:24 -0400
committerMarvin Scholz <epirat07@gmail.com>2025-05-22 22:26:30 +0200
commite93a43b5113c0b8d6357c5b6ed26ffff22cf028d (patch)
treeeaf9ccaafc903a77d900a827bac434fab28503f6 /doc/examples
parent977d1a24bc01ad2a9674f7bc749c6dc4adde0e13 (diff)
downloadffmpeg-e93a43b5113c0b8d6357c5b6ed26ffff22cf028d.tar.gz
doc/examples/filter_audio: use av_err2str
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/filter_audio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/examples/filter_audio.c b/doc/examples/filter_audio.c
index 8b237e2adf..02222f5914 100644
--- a/doc/examples/filter_audio.c
+++ b/doc/examples/filter_audio.c
@@ -270,7 +270,6 @@ int main(int argc, char *argv[])
AVFilterGraph *graph;
AVFilterContext *src, *sink;
AVFrame *frame;
- uint8_t errstr[1024];
float duration;
int err, nb_frames, i;
@@ -354,7 +353,6 @@ int main(int argc, char *argv[])
return 0;
fail:
- av_strerror(err, errstr, sizeof(errstr));
- fprintf(stderr, "%s\n", errstr);
+ fprintf(stderr, "%s\n", av_err2str(err));
return 1;
}