[FFmpeg-cvslog] doc: use av_dict_iterate in documentation example

Marvin Scholz git at videolan.org
Wed Jun 11 20:20:49 EEST 2025


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri May 23 17:05:09 2025 +0200| [2dcd9c5aac46846493cd49a21adb553454f000ea] | committer: Marvin Scholz

doc: use av_dict_iterate in documentation example

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2dcd9c5aac46846493cd49a21adb553454f000ea
---

 libavformat/avformat.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 441e31bc2f..b6c63e2237 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -146,8 +146,8 @@
  * consumed). The calling program can handle such unrecognized options as it
  * wishes, e.g.
  * @code
- * AVDictionaryEntry *e;
- * if (e = av_dict_get(options, "", NULL, AV_DICT_IGNORE_SUFFIX)) {
+ * const AVDictionaryEntry *e;
+ * if ((e = av_dict_iterate(options, NULL))) {
  *     fprintf(stderr, "Option %s not recognized by the demuxer.\n", e->key);
  *     abort();
  * }



More information about the ffmpeg-cvslog mailing list