diff mbox series

[FFmpeg-devel,1/6] doc/examples/metadata.c: constify values from av_dict_get().

Message ID d6057041-9c24-65ca-6c88-8f96c0fabd2f@triularity.org
State Accepted
Commit a90e41c59028ae4d83df81ebf05261aae15194b5
Headers show
Series [FFmpeg-devel,1/6] doc/examples/metadata.c: constify values from av_dict_get().
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Chad Fraleigh Oct. 18, 2021, 9:31 p.m. UTC
Treat values returned from av_dict_get() as const, since they are internal to AVDictionary.

Signed-off-by: Chad Fraleigh <chadf@triularity.org>
---
 doc/examples/metadata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/doc/examples/metadata.c b/doc/examples/metadata.c
index b6cfa6bd36..7c44009a24 100644
--- a/doc/examples/metadata.c
+++ b/doc/examples/metadata.c
@@ -34,7 +34,7 @@ 
 int main (int argc, char **argv)
 {
     AVFormatContext *fmt_ctx = NULL;
-    AVDictionaryEntry *tag = NULL;
+    const AVDictionaryEntry *tag = NULL;
     int ret;
 
     if (argc != 2) {