Commit 0718f0cc authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'bc8c1cdc'

* commit 'bc8c1cdc':
  lavfi doxy: add a page for lavfi.
  jpegls: check the scan offset

Conflicts:
	libavcodec/jpeglsdec.c
	libavfilter/avfilter.h
	libavutil/avutil.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7d84bb2b bc8c1cdc
......@@ -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;
......
......@@ -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 */
......@@ -23,6 +23,7 @@
/**
* @file
* @ingroup lavfi
* Libavfilter version macros
*/
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment