diff mbox series

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

Message ID 3374ec54-e39f-35f1-ac4c-13e26d4f09a6@triularity.org
State New
Headers show
Series [FFmpeg-devel,1/6] doc/examples/metadata.c: constify values from av_dict_get(). | expand

Checks

Context Check Description
andriy/configurex86 warning Failed to apply patch
andriy/configureppc warning Failed to apply patch

Commit Message

Chad Fraleigh Oct. 1, 2021, 9:01 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) {
-- 
2.25.1