Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Kempf <jb@videolan.org>2020-05-10 19:09:51 +0300
committerKieran Kunhya <kierank@obe.tv>2020-07-06 20:23:50 +0300
commitfc3f5cd149326b0a478c9a4a34acc22cf757ef02 (patch)
tree7f9714efe6cb0e137aeaa5ae9ab0dd2208299c4b /libavcodec/speedhq.c
parent73757577cb6dbc08aa0b12294863a3cc9d91b26f (diff)
Speedhq: Decode field 2 correctly
This is similar to field 1 (effd2e72)
Diffstat (limited to 'libavcodec/speedhq.c')
-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"