mirror of
				https://github.com/aler9/gortsplib
				synced 2025-10-31 10:36:26 +08:00 
			
		
		
		
	support KLV tracks (#808)
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
		 Yaroslav Molochko
					Yaroslav Molochko
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							ff94dc956b
						
					
				
				
					commit
					e02c447868
				
			
							
								
								
									
										17
									
								
								pkg/format/klv_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								pkg/format/klv_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| package format | ||||
|  | ||||
| import ( | ||||
| 	"testing" | ||||
|  | ||||
| 	"github.com/pion/rtp" | ||||
| 	"github.com/stretchr/testify/require" | ||||
| ) | ||||
|  | ||||
| func TestKLVAttributes(t *testing.T) { | ||||
| 	format := &KLV{ | ||||
| 		PayloadTyp: 96, | ||||
| 	} | ||||
| 	require.Equal(t, "KLV", format.Codec()) | ||||
| 	require.Equal(t, 90000, format.ClockRate()) | ||||
| 	require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{})) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user