On Mon, Jun 22, 2015 at 12:01:06AM +0100, Kieran Kunhya wrote: > > h264.c | 11 +++++++++++ > h264.h | 3 +++ > h264_sei.c | 6 ++++++ > 3 files changed, 20 insertions(+) > 0795671b9553ff2c0af24c0004e582bcbe5b3554 > 0001-avcodec-Add-support-for-per-frame-AFD-output-in-h264.patch > From 6c0c94f8581d9e76301b03f9f416972fc0265fb6 Mon Sep 17 00:00:00 2001 > From: Kieran Kunhya <kie...@kunhya.com> > Date: Sun, 21 Jun 2015 23:59:12 +0100 > Subject: [PATCH] avcodec: Add support for per-frame AFD output in h264 > > --- > libavcodec/h264.c | 11 +++++++++++ > libavcodec/h264.h | 3 +++ > libavcodec/h264_sei.c | 6 ++++++ > 3 files changed, 20 insertions(+) > > diff --git a/libavcodec/h264.c b/libavcodec/h264.c > index 9be317c..de17edd 100644 > --- a/libavcodec/h264.c > +++ b/libavcodec/h264.c > @@ -608,6 +608,7 @@ static int h264_init_context(AVCodecContext *avctx, > H264Context *h) > h->frame_recovered = 0; > h->prev_frame_num = -1; > h->sei_fpa.frame_packing_arrangement_cancel_flag = -1; > + h->has_afd = 0; > > h->next_outputed_poc = INT_MIN; > for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++) > @@ -869,6 +870,16 @@ static void decode_postinit(H264Context *h, int > setup_finished) > } > } > > + if (h->has_afd) { > + AVFrameSideData *sd = > + av_frame_new_side_data(cur->f, AV_FRAME_DATA_AFD, 1); > + if (!sd)
> + return AVERROR(ENOMEM); decode_postinit() has a void return value [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I do not agree with what you have to say, but I'll defend to the death your right to say it. -- Voltaire
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel