Re: [FFmpeg-devel] [PATCH] h264: Correctly initialize interlaced_frame if tff is set
On Tue, Feb 14, 2017 at 6:21 PM, Michael Niedermayer wrote: > On Sat, Feb 11, 2017 at 02:56:32AM +0100, Michael Niedermayer wrote: >> On Fri, Feb 10, 2017 at 05:21:00PM -0500, Vittorio Giovara wrote: >> > In particular cases, it is possible to initialize top_field_first >> > but not interlaced_frame. Make sure to correctly tag a frame >> > as interlaced when this happens. >> > >> > Signed-off-by: Vittorio Giovara >> > --- >> > Please CC. >> > Vittorio >> > >> > libavcodec/h264_slice.c | 13 - >> > 1 file changed, 8 insertions(+), 5 deletions(-) >> > >> > diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c >> > index 91a3b25..eeb5202 100644 >> > --- a/libavcodec/h264_slice.c >> > +++ b/libavcodec/h264_slice.c >> > @@ -1174,20 +1174,23 @@ static int h264_export_frame_props(H264Context *h) >> > >> > if (cur->field_poc[0] != cur->field_poc[1]) { >> > /* Derive top_field_first from field pocs. */ >> > -cur->f->top_field_first = cur->field_poc[0] < cur->field_poc[1]; >> > +cur->f->interlaced_frame = >> > +cur->f->top_field_first = cur->field_poc[0] < cur->field_poc[1]; >> >> this looks like it would set interlaced_frame = 0 if >> cur->field_poc[0] > cur->field_poc[1]; >> >> also, do you have a sample that is affected by this ? > > thx for the sample, ive pushed a different fix > does that fix this completely or is some issue remaining ? Looks good, thanks for the fix. -- Vittorio ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH] h264: Correctly initialize interlaced_frame if tff is set
On Sat, Feb 11, 2017 at 02:56:32AM +0100, Michael Niedermayer wrote: > On Fri, Feb 10, 2017 at 05:21:00PM -0500, Vittorio Giovara wrote: > > In particular cases, it is possible to initialize top_field_first > > but not interlaced_frame. Make sure to correctly tag a frame > > as interlaced when this happens. > > > > Signed-off-by: Vittorio Giovara > > --- > > Please CC. > > Vittorio > > > > libavcodec/h264_slice.c | 13 - > > 1 file changed, 8 insertions(+), 5 deletions(-) > > > > diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c > > index 91a3b25..eeb5202 100644 > > --- a/libavcodec/h264_slice.c > > +++ b/libavcodec/h264_slice.c > > @@ -1174,20 +1174,23 @@ static int h264_export_frame_props(H264Context *h) > > > > if (cur->field_poc[0] != cur->field_poc[1]) { > > /* Derive top_field_first from field pocs. */ > > -cur->f->top_field_first = cur->field_poc[0] < cur->field_poc[1]; > > +cur->f->interlaced_frame = > > +cur->f->top_field_first = cur->field_poc[0] < cur->field_poc[1]; > > this looks like it would set interlaced_frame = 0 if > cur->field_poc[0] > cur->field_poc[1]; > > also, do you have a sample that is affected by this ? thx for the sample, ive pushed a different fix does that fix this completely or is some issue remaining ? thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB When you are offended at any man's fault, turn to yourself and study your own failings. Then you will forget your anger. -- Epictetus signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH] h264: Correctly initialize interlaced_frame if tff is set
On Fri, Feb 10, 2017 at 05:21:00PM -0500, Vittorio Giovara wrote: > In particular cases, it is possible to initialize top_field_first > but not interlaced_frame. Make sure to correctly tag a frame > as interlaced when this happens. > > Signed-off-by: Vittorio Giovara > --- > Please CC. > Vittorio > > libavcodec/h264_slice.c | 13 - > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c > index 91a3b25..eeb5202 100644 > --- a/libavcodec/h264_slice.c > +++ b/libavcodec/h264_slice.c > @@ -1174,20 +1174,23 @@ static int h264_export_frame_props(H264Context *h) > > if (cur->field_poc[0] != cur->field_poc[1]) { > /* Derive top_field_first from field pocs. */ > -cur->f->top_field_first = cur->field_poc[0] < cur->field_poc[1]; > +cur->f->interlaced_frame = > +cur->f->top_field_first = cur->field_poc[0] < cur->field_poc[1]; this looks like it would set interlaced_frame = 0 if cur->field_poc[0] > cur->field_poc[1]; also, do you have a sample that is affected by this ? [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Breaking DRM is a little like attempting to break through a door even though the window is wide open and the only thing in the house is a bunch of things you dont want and which you would get tomorrow for free anyway signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel