The exact same code is executed at the beginning of decode_nal_units()
Unified · Split
| @@ -3369,7 +3369,6 @@ static int hevc_decode_frame(AVCodecContext *avctx, AVFrame *rframe, · 3368 unmodified lines | ||
| 3369 | 3369 | old, s->dovi_ctx.cfg.dv_profile); |
| 3370 | 3370 | } |
| 3371 | 3371 | |
| 3372 | − s->cur_frame = s->collocated_ref = NULL; | |
| 3373 | 3372 | ret = decode_nal_units(s, avpkt->data, avpkt->size); |
| 3374 | 3373 | if (ret < 0) |
| 3375 | 3374 | return ret; |