diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-11 23:59:36 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-11 23:59:36 +0000 |
commit | a328d9ff57e273b73458e6fdd4d9b23c4b4de3bc (patch) | |
tree | 4cf1b461acce1fdb9df80ce80c294ea79a09e7b6 /libmpdemux/realrtsp | |
parent | 53edbf42c4ca47bb9ba25a66a83f3ff3d90351e9 (diff) | |
download | mpv-a328d9ff57e273b73458e6fdd4d9b23c4b4de3bc.tar.bz2 mpv-a328d9ff57e273b73458e6fdd4d9b23c4b4de3bc.tar.xz |
Fix streaming if not mlti_data (for some non-multirate streams)
Also closes bug #151
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14145 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/realrtsp')
-rw-r--r-- | libmpdemux/realrtsp/real.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpdemux/realrtsp/real.c b/libmpdemux/realrtsp/real.c index 565a9b7e8e..ae6e6fdbc0 100644 --- a/libmpdemux/realrtsp/real.c +++ b/libmpdemux/realrtsp/real.c @@ -542,8 +542,10 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt *stream_rules = xbuffer_strcat(*stream_rules, b); } - if (!desc->stream[i]->mlti_data) return NULL; - + if (!desc->stream[i]->mlti_data) { + len = 0; + buf = NULL; + } else len=select_mlti_data(desc->stream[i]->mlti_data, desc->stream[i]->mlti_data_size, rulematches[0], &buf); header->streams[i]=rmff_new_mdpr( |