remove log Fatalln

when the code is h265,the program exit by log
This commit is contained in:
Mr.Tang 2021-08-11 16:35:35 +08:00 committed by GitHub
parent b638fa5e35
commit 60f8bb7cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import (
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"io" "io"
"log" //"log"
"net" "net"
"net/textproto" "net/textproto"
"net/url" "net/url"
@ -806,7 +806,9 @@ func (self *Stream) makeCodecData() (err error) {
return return
} }
default: default:
log.Fatalln("Fix Format may be raw PCM 97", media.PayloadType, media.Type) //log.Fatalln("Fix Format may be raw PCM 97", media.PayloadType, media.Type)
err = fmt.Errorf("rtsp: Type=%d unsupported", media.Type)
return
} }
} else { } else {
switch media.PayloadType { switch media.PayloadType {