diff options
author | Jean-Baptiste Kempf <jb@videolan.org> | 2020-05-10 18:09:51 +0200 |
---|---|---|
committer | Kieran Kunhya <kierank@obe.tv> | 2020-07-06 18:23:50 +0100 |
commit | fc3f5cd149326b0a478c9a4a34acc22cf757ef02 (patch) | |
tree | 7f9714efe6cb0e137aeaa5ae9ab0dd2208299c4b | |
parent | 73757577cb6dbc08aa0b12294863a3cc9d91b26f (diff) | |
download | ffmpeg-fc3f5cd149326b0a478c9a4a34acc22cf757ef02.tar.gz |
Speedhq: Decode field 2 correctly
This is similar to field 1 (effd2e72)
-rw-r--r-- | libavcodec/speedhq.c | 2 |
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" |