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
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 signal452 * 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"

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