This is similar to field 1 (effd2e72)
Unified · Split
| @@ -447,7 +447,7 @@ static int speedhq_decode_frame(AVCodecContext *avctx, · 446 unmodified lines | |||
| 447 | } | 447 | } |
| 448 | frame->key_frame = 1; | 448 | frame->key_frame = 1; |
| 449 | 449 | ||
| 450 | if (second_field_offset == 4) { | 450 | if (second_field_offset == 4 || second_field_offset == (buf_size-4)) { |
| 451 | /* | 451 | /* |
| 452 | * Overlapping first and second fields is used to signal | 452 | * Overlapping first and second fields is used to signal |
| 453 | * encoding only a single field. In this case, "height" | 453 | * encoding only a single field. In this case, "height" |