[FFmpeg-cvslog] Speedhq: Decode field 2 correctly

Jean-Baptiste Kempf git at videolan.org
Mon Jul 6 22:42:22 EEST 2020


ffmpeg | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 10 18:09:51 2020 +0200| [fc3f5cd149326b0a478c9a4a34acc22cf757ef02] | committer: Kieran Kunhya

Speedhq: Decode field 2 correctly

This is similar to field 1 (effd2e72)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc3f5cd149326b0a478c9a4a34acc22cf757ef02
---

 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"



More information about the ffmpeg-cvslog mailing list