codec Equal

This commit is contained in:
deepch 2022-05-27 03:47:09 +03:00
parent 2be4196875
commit 4db7d612fc

View File

@ -326,7 +326,7 @@ func Equal(c1 []av.CodecData, c2 []av.CodecData) bool {
if eq := bytes.Compare( if eq := bytes.Compare(
codec.(h264parser.CodecData).AVCDecoderConfRecordBytes(), codec.(h264parser.CodecData).AVCDecoderConfRecordBytes(),
c2[i].(h264parser.CodecData).AVCDecoderConfRecordBytes(), c2[i].(h264parser.CodecData).AVCDecoderConfRecordBytes(),
); eq == 0 { ); eq != 0 {
return false return false
} }
case av.AAC: case av.AAC: