[vlc-commits] codec: avcodec: workaround missing defines in avcodec

Francois Cartegnie git at videolan.org
Wed Jan 16 22:20:19 CET 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 16 22:19:03 2019 +0100| [8af9e9ce5685899a65f1e0441398dbbb3282071e] | committer: Francois Cartegnie

codec: avcodec: workaround missing defines in avcodec

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8af9e9ce5685899a65f1e0441398dbbb3282071e
---

 modules/codec/avcodec/avcommon.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/avcodec/avcommon.h b/modules/codec/avcodec/avcommon.h
index d2f5630acb..f510afd45a 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -139,6 +139,10 @@ static inline void vlc_init_avcodec(vlc_object_t *obj)
 }
 #endif
 
+#ifndef AV_ERROR_MAX_STRING_SIZE
+ #define AV_ERROR_MAX_STRING_SIZE 64
+#endif
+
 static inline vlc_rational_t FromAVRational(const AVRational rat)
 {
     return (vlc_rational_t){.num = rat.num, .den = rat.den};



More information about the vlc-commits mailing list