avcodec/aac_ac3_parser: Use ff_adts_header_parse_buf()
instead of avpriv_adts_header_parse(). Using the former avoids an indirection. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		
							parent
							
								
									12ded9cd85
								
							
						
					
					
						commit
						a2874c5721
					
				@ -144,10 +144,9 @@ get_next:
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
#if CONFIG_AAC_PARSER
 | 
					#if CONFIG_AAC_PARSER
 | 
				
			||||||
            AACADTSHeaderInfo hdr, *phrd = &hdr;
 | 
					            AACADTSHeaderInfo hdr;
 | 
				
			||||||
            int ret = avpriv_adts_header_parse(&phrd, buf, buf_size);
 | 
					            if (buf_size < AV_AAC_ADTS_HEADER_SIZE ||
 | 
				
			||||||
 | 
					                ff_adts_header_parse_buf(buf, &hdr) < 0)
 | 
				
			||||||
            if (ret < 0)
 | 
					 | 
				
			||||||
                return i;
 | 
					                return i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            bit_rate = hdr.bit_rate;
 | 
					            bit_rate = hdr.bit_rate;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user