diff options
-rw-r--r-- | libavcodec/jpeglsdec.c | 4 | ||||
-rw-r--r-- | libavfilter/avfilter.h | 5 | ||||
-rw-r--r-- | libavfilter/version.h | 1 | ||||
-rw-r--r-- | libavutil/avutil.h | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index c133cfb..3af230d 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 822eca7..741ec35 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 19e2389..22d4589 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 6f307d6..dc8a03f 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 |