Ticket #88: fix-no-b-v2.patch
| File fix-no-b-v2.patch, 605 bytes (added by mjs973, 2 years ago) |
|---|
-
libavcodec/h264.c
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 6cd597e..a40afbc 100644
a b static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){ 3413 3413 init_get_bits(&s->gb, ptr, bit_length); 3414 3414 ff_h264_decode_seq_parameter_set(h); 3415 3415 3416 if(s->flags& CODEC_FLAG_LOW_DELAY) 3416 if(s->flags& CODEC_FLAG_LOW_DELAY || 3417 (h->sps.bitstream_restriction_flag && !h->sps.num_reorder_frames)) 3417 3418 s->low_delay=1; 3418 3419 3419 3420 if(avctx->has_b_frames < 2)
