h264: remove low_delay/has_b_frame setting code from nal loop
This code is now executed in h264_set_parameter_from_sps() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									b9d887c225
								
							
						
					
					
						commit
						3b5c0f5e36
					
				@ -4057,20 +4057,6 @@ again:
 | 
			
		||||
                    ff_h264_decode_seq_parameter_set(h);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                if (s->flags & CODEC_FLAG_LOW_DELAY ||
 | 
			
		||||
                    (h->sps.bitstream_restriction_flag &&
 | 
			
		||||
                     !h->sps.num_reorder_frames)) {
 | 
			
		||||
                    if (s->avctx->has_b_frames > 1 || h->delayed_pic[0])
 | 
			
		||||
                        av_log(avctx, AV_LOG_WARNING, "Delayed frames seen "
 | 
			
		||||
                               "reenabling low delay requires a codec "
 | 
			
		||||
                               "flush.\n");
 | 
			
		||||
                        else
 | 
			
		||||
                            s->low_delay = 1;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                if (avctx->has_b_frames < 2)
 | 
			
		||||
                    avctx->has_b_frames = !s->low_delay;
 | 
			
		||||
                break;
 | 
			
		||||
            case NAL_PPS:
 | 
			
		||||
                init_get_bits(&s->gb, ptr, bit_length);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user