History

Speedhq: Decode field 2 correctly

This is similar to field 1 (effd2e72)

Jean-Baptiste Kempf committed 6 years ago

Commit fc3f5cd1 parent 73757571 file · +1 −1Browse files

Unified · Split

libavcodec/speedhq.c+1−1
@@ -447,7 +447,7 @@ static int speedhq_decode_frame(AVCodecContext *avctx, · 446 unmodified lines
447447 }
448448 frame->key_frame = 1;
449449
450− if (second_field_offset == 4) {
450+ if (second_field_offset == 4 || second_field_offset == (buf_size-4)) {
451451 /*
452452 * Overlapping first and second fields is used to signal
453453 * encoding only a single field. In this case, "height"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t