avcodec/avcodec: Don't use NULL for %s printf specifier
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 21 Mar 2021 05:29:13 +0000 (06:29 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Fri, 2 Apr 2021 19:35:55 +0000 (21:35 +0200)
commit0bbf1f4785f6efcb252aacbf5c7391f45286e313
tree8d36875aac5ad89f1c5c47892ee300d68e388734
parenta57ba45eb4f5a0beefc833012420605ad6c992ee
avcodec/avcodec: Don't use NULL for %s printf specifier

Our "get name" functions can return NULL for invalid/unknown
arguments. So check for this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 88b7d9fd367c16302c9cc5dfbd045a7cc684eca4)
libavcodec/avcodec.c