Mageia Bugzilla – Attachment 12504 Details for
Bug 28504
mplayer can't read video files with dav1d codec; this bugs contains the fix.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
rtsp extra fixes patch
mplayer-rtsp-extra-fixes.patch (text/plain), 1.65 KB, created by
Philippe Didier
on 2021-03-25 01:34:41 CET
(
hide
)
Description:
rtsp extra fixes patch
Filename:
MIME Type:
Creator:
Philippe Didier
Created:
2021-03-25 01:34:41 CET
Size:
1.65 KB
patch
obsolete
>diff -p -up mplayer/stream/librtsp/rtsp_session.c.rtsp-extra-fixes mplayer/stream/librtsp/rtsp_session.c >--- mplayer/stream/librtsp/rtsp_session.c.rtsp-extra-fixes 2009-07-01 22:01:58.000000000 +0200 >+++ mplayer/stream/librtsp/rtsp_session.c 2009-07-01 22:09:08.000000000 +0200 >@@ -166,8 +166,8 @@ rtsp_session_t *rtsp_session_start(int f > } > > rtsp_session->real_session = init_real_rtsp_session (); >- if(!strncmp(h->streams[0]->mime_type, "application/vnd.rn-rmadriver", h->streams[0]->mime_type_size) || >- !strncmp(h->streams[0]->mime_type, "application/smil", h->streams[0]->mime_type_size)) { >+ if(h->streams[0] && (!strncmp(h->streams[0]->mime_type, "application/vnd.rn-rmadriver", h->streams[0]->mime_type_size) || >+ !strncmp(h->streams[0]->mime_type, "application/smil", h->streams[0]->mime_type_size))) { > rtsp_session->real_session->header_len = 0; > rtsp_session->real_session->recv_size = 0; > rtsp_session->real_session->rdt_rawdata = 1; >diff -p -up mplayer/stream/realrtsp/sdpplin.c.rtsp-extra-fixes mplayer/stream/realrtsp/sdpplin.c >--- mplayer/stream/realrtsp/sdpplin.c.rtsp-extra-fixes 2009-07-01 22:01:58.000000000 +0200 >+++ mplayer/stream/realrtsp/sdpplin.c 2009-07-01 22:10:27.000000000 +0200 >@@ -276,6 +276,13 @@ sdpplin_t *sdpplin_parse(char *data) { > > if (filter(data, "m=", &buf)) { > sdpplin_stream_t *stream=sdpplin_parse_stream(&data); >+ if (!stream) { >+ mp_msg(MSGT_OPEN, MSGL_ERR, "sdpplin: can't parse stream\n"); >+ free(desc); >+ free(buf); >+ free(decoded); >+ return NULL; >+ } > #ifdef LOG > printf("got data for stream id %u\n", stream->stream_id); > #endif
diff -p -up mplayer/stream/librtsp/rtsp_session.c.rtsp-extra-fixes mplayer/stream/librtsp/rtsp_session.c --- mplayer/stream/librtsp/rtsp_session.c.rtsp-extra-fixes 2009-07-01 22:01:58.000000000 +0200 +++ mplayer/stream/librtsp/rtsp_session.c 2009-07-01 22:09:08.000000000 +0200 @@ -166,8 +166,8 @@ rtsp_session_t *rtsp_session_start(int f } rtsp_session->real_session = init_real_rtsp_session (); - if(!strncmp(h->streams[0]->mime_type, "application/vnd.rn-rmadriver", h->streams[0]->mime_type_size) || - !strncmp(h->streams[0]->mime_type, "application/smil", h->streams[0]->mime_type_size)) { + if(h->streams[0] && (!strncmp(h->streams[0]->mime_type, "application/vnd.rn-rmadriver", h->streams[0]->mime_type_size) || + !strncmp(h->streams[0]->mime_type, "application/smil", h->streams[0]->mime_type_size))) { rtsp_session->real_session->header_len = 0; rtsp_session->real_session->recv_size = 0; rtsp_session->real_session->rdt_rawdata = 1; diff -p -up mplayer/stream/realrtsp/sdpplin.c.rtsp-extra-fixes mplayer/stream/realrtsp/sdpplin.c --- mplayer/stream/realrtsp/sdpplin.c.rtsp-extra-fixes 2009-07-01 22:01:58.000000000 +0200 +++ mplayer/stream/realrtsp/sdpplin.c 2009-07-01 22:10:27.000000000 +0200 @@ -276,6 +276,13 @@ sdpplin_t *sdpplin_parse(char *data) { if (filter(data, "m=", &buf)) { sdpplin_stream_t *stream=sdpplin_parse_stream(&data); + if (!stream) { + mp_msg(MSGT_OPEN, MSGL_ERR, "sdpplin: can't parse stream\n"); + free(desc); + free(buf); + free(decoded); + return NULL; + } #ifdef LOG printf("got data for stream id %u\n", stream->stream_id); #endif
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28504
:
12499
|
12500
|
12501
|
12502
|
12503
| 12504 |
12505
|
12506
|
12507
|
12508
|
12509
|
12510
|
12511
|
12512
|
12513
|
12514
|
12515
|
12518
|
12536
|
12541