Commit 294bb6cb authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/hevc_refs: Silence "Could not find ref with POC" for CRA/BLA

Avoids error messages during seeking

Found-by: cousin_luigi
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3c5c6870
......@@ -386,8 +386,9 @@ static HEVCFrame *find_ref_idx(HEVCContext *s, int poc)
}
}
av_log(s->avctx, AV_LOG_ERROR,
"Could not find ref with POC %d\n", poc);
if (s->nal_unit_type != NAL_CRA_NUT && !IS_BLA(s))
av_log(s->avctx, AV_LOG_ERROR,
"Could not find ref with POC %d\n", poc);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment