Browse Source

Don't forget to set known audio parameters (samplerate, etc.) if the codec is

not supported in FFmpeg. This will cause crashes later because the samplerate
is used to initialize the timebase.

Originally committed as revision 21741 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Ronald S. Bultje 15 years ago
parent
commit
170870b77c
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      libavformat/rtsp.c

+ 1
- 5
libavformat/rtsp.c View File

@@ -131,9 +131,8 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
if (c && c->name)
c_name = c->name;
else
c_name = (char *) NULL;
c_name = "(null)";

if (c_name) {
get_word_sep(buf, sizeof(buf), "/", &p);
i = atoi(buf);
switch (codec->codec_type) {
@@ -164,9 +163,6 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
break;
}
return 0;
}

return -1;
}

/* return the length and optionally the data */


Loading…
Cancel
Save