1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix dash crash if format not supported. v5.0.177 v6.0.73 (#3795)

Fix the issue of DASH crashing when audio/video formats are not
supported.

---------

Co-authored-by: Haibo Chen <495810242@qq.com>
This commit is contained in:
john 2023-09-07 22:56:15 +08:00 committed by GitHub
parent 6e6b80d837
commit 26b3154724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -619,7 +619,7 @@ srs_error_t SrsDashController::refresh_mpd(SrsFormat* format)
srs_error_t err = srs_success;
// TODO: FIXME: Support pure audio streaming.
if (!format->acodec || !format->vcodec) {
if (!format || !format->acodec || !format->vcodec) {
return err;
}

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 5
#define VERSION_MINOR 0
#define VERSION_REVISION 176
#define VERSION_REVISION 177
#endif

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 6
#define VERSION_MINOR 0
#define VERSION_REVISION 72
#define VERSION_REVISION 73
#endif