History

avcodec/h2645_parse: Avoid EAGAIN

EAGAIN causes an assertion failure when it is returned from the decoder Fixes: Assertion consumed != (-(11)) failed at libavcodec/decode.c:462 Fixes: assertion_IOT_instruction_decode_c_462/poc

Michael Niedermayer committed 3 years ago

Commit 5ddab491 parent f7e55371 file · +1 −1Browse files

Unified · Split

libavcodec/h2645_parse.h+1−1
@@ -123,7 +123,7 @@ static inline int get_nalsize(int nal_length_size, const uint8_t *buf, · 122 unmodified lines
123 123
124 if (*buf_index >= buf_size - nal_length_size) {124 if (*buf_index >= buf_size - nal_length_size) {
125 // the end of the buffer is reached, refill it125 // the end of the buffer is reached, refill it
126 return AVERROR(EAGAIN);126 return AVERROR_INVALIDDATA;
127 }127 }
128 128
129 for (i = 0; i < nal_length_size; i++)129 for (i = 0; i < nal_length_size; i++)

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