rename MJPEG label into M-JPEG

This commit is contained in:
aler9
2022-12-27 17:27:59 +01:00
parent aca56089c1
commit 824fd75d18
9 changed files with 17 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ import (
// This example shows how to
// 1. connect to a RTSP server
// 2. check if there's a MJPEG media
// 2. check if there's a M-JPEG media
// 3. get JPEG images of that media
// 4. decode JPEG images into raw images
@@ -40,14 +40,14 @@ func main() {
panic(err)
}
// find the MJPEG media and format
// find the M-JPEG media and format
var forma *format.MJPEG
medi := medias.FindFormat(&forma)
if medi == nil {
panic("media not found")
}
// setup RTP/MJPEG->MJPEG decoder
// setup RTP/M-JPEG->M-JPEG decoder
rtpDec := forma.CreateDecoder()
// setup the chosen media only