Should hopefully fix the invalid reads after free introduced in e1bc3f4396ade6033787717d3650fb62663eae8 for all targets.
Unified · Split
| @@ -147,7 +147,9 @@ static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *out) · 146 unmodified lines | ||
| 147 | 147 | goto done; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | − av_packet_move_ref(s->cache[s->n_cache++], in); | |
| 150 | + res = av_packet_ref(s->cache[s->n_cache++], in); | |
| 151 | + if (res < 0) | |
| 152 | + goto done; | |
| 151 | 153 | |
| 152 | 154 | if (invisible) { |
| 153 | 155 | res = AVERROR(EAGAIN); |