aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-08-17 02:06:27 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-09-03 00:09:11 +0200
commitfb0cd972a704fbe8100837c16b18e2cbde3d5215 (patch)
treef4e06660fdb7c708a7a765ab2e9c97746c92f1aa
parent2d65c44f220c57cd5afcddee8430ded2177288eb (diff)
downloadffmpeg-fb0cd972a704fbe8100837c16b18e2cbde3d5215.tar.gz
avcodec/h264_refs: Document last if() in ff_h264_execute_ref_pic_marking()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 697984b9db4d4d199680f43ac3eb662cd1d37eff) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/h264_refs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index a3de6b2f35..5ec7f2d061 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -813,6 +813,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count)
pps_ref_count[1] = FFMAX(pps_ref_count[1], h->pps.ref_count[1]);
}
+ // Detect unmarked random access points
if ( err >= 0
&& h->long_ref_count==0
&& ( h->short_ref_count<=2