On Mon, Oct 12, 2015 at 4:24 PM, Luca Barbato <[email protected]> wrote:
> There are no formats supporting it anymore and it is deprecated.
> Update the documentation accordingly.
> ---
> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> index aa11cff..5caf73a 100644
> --- a/libavformat/avformat.h
> +++ b/libavformat/avformat.h
> @@ -413,8 +413,10 @@ typedef struct AVProbeData {
> #define AVFMT_NOFILE 0x0001
> #define AVFMT_NEEDNUMBER 0x0002 /**< Needs '%d' in filename. */
> #define AVFMT_SHOW_IDS 0x0008 /**< Show format stream IDs numbers. */
> +#if FF_API_LAVF_FMT_RAWPICTURE
> #define AVFMT_RAWPICTURE 0x0020 /**< Format wants AVPicture structure for
> - raw picture data. */
> + raw picture data. Unused and
> deprecated */
> +#endif
you can just drop the documentation completely and just @deprecated
like we do in avcodec.h
> #define AVFMT_GLOBALHEADER 0x0040 /**< Format wants global header. */
> #define AVFMT_NOTIMESTAMPS 0x0080 /**< Format does not need / have any
> timestamps. */
> #define AVFMT_GENERIC_INDEX 0x0100 /**< Use generic index building code. */
> @@ -454,7 +456,7 @@ typedef struct AVOutputFormat {
> enum AVCodecID video_codec; /**< default video codec */
> enum AVCodecID subtitle_codec; /**< default subtitle codec */
> /**
> - * can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_RAWPICTURE,
> + * can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER,
> * AVFMT_GLOBALHEADER, AVFMT_NOTIMESTAMPS, AVFMT_VARIABLE_FPS,
> * AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS, AVFMT_ALLOW_FLUSH,
> * AVFMT_TS_NONSTRICT
> diff --git a/libavformat/version.h b/libavformat/version.h
> index f8dbd6e..d74968a 100644
> --- a/libavformat/version.h
> +++ b/libavformat/version.h
> @@ -57,5 +57,8 @@
> #ifndef FF_API_LAVF_CODEC_TB
> #define FF_API_LAVF_CODEC_TB (LIBAVFORMAT_VERSION_MAJOR < 58)
> #endif
> +#ifndef FF_API_LAVF_FMT_RAWPICTURE
> +#define FF_API_LAVF_FMT_RAWPICTURE (LIBAVFORMAT_VERSION_MAJOR < 58)
> +#endif
>
> #endif /* AVFORMAT_VERSION_H */
> --
lgtm
--
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel