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
Unified · Split
| @@ -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 it | 125 | // 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++) |