This patch should help. Although, call to deprecated av_init_packet() remains. It is to be replaced with av_packet_alloc() / av_packet_free() logic.
--- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -29,6 +29,7 @@ #include <signal.h> #include <getopt.h> +#include <libavcodec/avcodec.h> #include <libavdevice/avdevice.h> #include <libavformat/avformat.h> #include <libavutil/imgutils.h> @@ -49,17 +50,15 @@ static int video_input_init(struct video const char *input_path, AVDictionary **input_options) { - AVInputFormat *input_format = NULL; + AVInputFormat const *input_format = NULL; AVFormatContext *input_format_ctx; AVCodecParameters *input_codec_params; AVCodecContext *input_codec_ctx; - AVCodec *input_codec; + AVCodec const *input_codec; int video_index; int ret; avdevice_register_all(); - avcodec_register_all(); - av_register_all(); if (input_format_string) { /* find the desired input format */ @@ -158,7 +157,7 @@ static int video_output_init(struct vide am7xxx_device *dev) { AVCodecContext *output_codec_ctx; - AVCodec *output_codec; + AVCodec const *output_codec; unsigned int new_output_width; unsigned int new_output_height; int ret;
signature.asc
Description: This is a digitally signed message part.