[FFmpeg-devel] [PATCH] Speedhq: Decode field 2 correctly

Jean-Baptiste Kempf jb at videolan.org
Thu Jun 18 19:28:17 EEST 2020


Sorry for the late answer.

There are no actual files, but this is used in the NDI streams.
There is a new library for that here:
https://code.videolan.org/jbk/libndi/ and this is how I found out about that.

On Thu, May 14, 2020, at 21:28, Paul B Mahol wrote:
> Do you have actual file this fixes?
> 
> On 5/10/20, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> > This is similar to field 1 (effd2e72)
> > ---
> >  libavcodec/speedhq.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c
> > index 890b8253cd..b834b79f28 100644
> > --- a/libavcodec/speedhq.c
> > +++ b/libavcodec/speedhq.c
> > @@ -447,7 +447,7 @@ static int speedhq_decode_frame(AVCodecContext *avctx,
> >      }
> >      frame->key_frame = 1;
> >
> > -    if (second_field_offset == 4) {
> > +    if (second_field_offset == 4 || second_field_offset == (buf_size-4)) {
> >          /*
> >           * Overlapping first and second fields is used to signal
> >           * encoding only a single field. In this case, "height"
> > --
> > 2.26.2
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the ffmpeg-devel mailing list