diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8f9838c0b749ccf33229fe58a11c3c1a754c354c..844945cb77b3e303d3175c7bdf7ad5f49c26f5ea 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3150,6 +3150,7 @@ extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v);
 #define AVERROR_NOMEM       AVERROR(ENOMEM)  /**< not enough memory */
 #define AVERROR_NOFMT       AVERROR(EILSEQ)  /**< unknown format */
 #define AVERROR_NOTSUPP     AVERROR(ENOSYS)  /**< Operation not supported. */
+#define AVERROR_NOENT       AVERROR(ENOENT)  /**< No such file or directory. */
 
 #ifdef __cplusplus
 }