aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Kempf2020-05-10 18:09:51 +0200
committerKieran Kunhya2020-07-06 18:23:50 +0100
commitfc3f5cd149326b0a478c9a4a34acc22cf757ef02 (patch)
tree7f9714efe6cb0e137aeaa5ae9ab0dd2208299c4b
parent73757577cb6dbc08aa0b12294863a3cc9d91b26f (diff)
Speedhq: Decode field 2 correctly
This is similar to field 1 (effd2e72)
-rw-r--r--libavcodec/speedhq.c2
1 files changed, 1 insertions, 1 deletions
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"