I believe this also warrants a docs update.
On Tue, Feb 11, 2014 at 06:39:28PM +0000, Derek Buitenhuis wrote:
> --- /dev/null
> +++ b/libavcodec/libx265.c
> @@ -0,0 +1,279 @@
> +
> +#include "libavutil/internal.h"
> +#include "libavutil/common.h"
> +#include "libavutil/opt.h"
> +#include "libavutil/pixdesc.h"
> +#include "avcodec.h"
> +#include "internal.h"
> +
> +#include <x265.h>
Reorder and move the system header before the local ones.
> +static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
> + const AVFrame *pic, int *got_packet)
> +{
> + libx265Context *ctx = avctx->priv_data;
> + x265_picture x265pic;
> + x265_picture x265pic_out;
> +
> + memset(&x265pic_out, 0, sizeof(x265pic_out));
x265_picture x265pic_out = { 0 };
> +AVCodec ff_libx265_encoder = {
> + .name = "libx265",
> + .type = AVMEDIA_TYPE_VIDEO,
> + .id = AV_CODEC_ID_HEVC,
> + .init = libx265_encode_init,
> + .init_static_data = libx265_encode_init_csp,
> + .encode2 = libx265_encode_frame,
> + .close = libx265_encode_close,
> + .priv_data_size = sizeof(libx265Context),
> + .priv_class = &class,
> + .long_name = NULL_IF_CONFIG_SMALL("libx265 H.265 / HEVC"),
> + .capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
> +};
Move .long_name after .name.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel