]> git.sesse.net Git - ffmpeg/commitdiff
Speedhq: Decode field 2 correctly
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 May 2020 16:09:51 +0000 (18:09 +0200)
committerKieran Kunhya <kierank@obe.tv>
Mon, 6 Jul 2020 17:23:50 +0000 (18:23 +0100)
This is similar to field 1 (effd2e72)

libavcodec/speedhq.c

index 890b8253cd687bf3c991e6076e1626957d336e78..b834b79f28098fe9f53587ae79bebe05d92e2bea 100644 (file)
@@ -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"