[FFmpeg-cvslog] doc/examples/filter_audio: use av_err2str
Tristan Matthews
git at videolan.org
Thu May 22 23:27:22 EEST 2025
ffmpeg | branch: master | Tristan Matthews <tmatth at videolan.org> | Thu May 22 12:57:24 2025 -0400| [e93a43b5113c0b8d6357c5b6ed26ffff22cf028d] | committer: Marvin Scholz
doc/examples/filter_audio: use av_err2str
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e93a43b5113c0b8d6357c5b6ed26ffff22cf028d
---
doc/examples/filter_audio.c | 4 +---
1 file changed, 1 insertion(+), 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;
}
More information about the ffmpeg-cvslog
mailing list