summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-04 04:25:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-04 04:25:14 +0200
commit19c9d1e8e71da04c3ac940206619c0a2d01e5193 (patch)
treeb88e36b6c3c445a088eeed32b216f5eed21ef659 /libavcodec/h264.c
parentfbaf73a33d505a32431ede6599f5b742ade045e1 (diff)
avcodec/h264: in the absence of recovery points, be more tolerant on accepting plain I frames
Fixes: Ticket3652 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 942ba7f20a..c46c372466 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1561,6 +1561,7 @@ again:
if(!idr_cleared)
idr(h); // FIXME ensure we don't lose some frames if there is reordering
idr_cleared = 1;
+ h->has_recovery_point = 1;
case NAL_SLICE:
init_get_bits(&hx->gb, ptr, bit_length);
hx->intra_gb_ptr =