remove log Fatalln
when the code is h265,the program exit by log
This commit is contained in:
parent
b638fa5e35
commit
60f8bb7cd7
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user