summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/jpeglsdec.c4
-rw-r--r--libavfilter/avfilter.h5
-rw-r--r--libavfilter/version.h1
-rw-r--r--libavutil/avutil.h2
4 files changed, 9 insertions, 3 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c
index c133cfb207..3af230d1db 100644
--- a/libavcodec/jpeglsdec.c
+++ b/libavcodec/jpeglsdec.c
@@ -311,6 +311,10 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near,
ilv, point_transform, s->bits, s->cur_scan);
}
if (ilv == 0) { /* separate planes */
+ if (s->cur_scan > s->nb_components) {
+ ret = AVERROR_INVALIDDATA;
+ goto end;
+ }
stride = (s->nb_components > 1) ? 3 : 1;
off = av_clip(s->cur_scan - 1, 0, stride - 1);
width = s->width * stride;
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 822eca7af2..741ec350b8 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -25,11 +25,11 @@
/**
* @file
* @ingroup lavfi
- * external API header
+ * Main libavfilter public API header
*/
/**
- * @defgroup lavfi Libavfilter
+ * @defgroup lavfi Libavfilter - graph-based frame editing library
* @{
*/
@@ -1298,4 +1298,5 @@ int avfilter_graph_request_oldest(AVFilterGraph *graph);
/**
* @}
*/
+
#endif /* AVFILTER_AVFILTER_H */
diff --git a/libavfilter/version.h b/libavfilter/version.h
index 19e2389db2..22d45892ab 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -23,6 +23,7 @@
/**
* @file
+ * @ingroup lavfi
* Libavfilter version macros
*/
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 6f307d6c5d..dc8a03f29a 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -35,7 +35,7 @@
* provided by FFmpeg.
*
* @li @ref libavc "libavcodec" encoding/decoding library
- * @li @ref lavfi "libavfilter" graph based frame editing library
+ * @li @ref lavfi "libavfilter" graph-based frame editing library
* @li @ref libavf "libavformat" I/O and muxing/demuxing library
* @li @ref lavd "libavdevice" special devices muxing/demuxing library
* @li @ref lavu "libavutil" common utility library