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
release/0.6
Ronald S. Bultje 15 years ago
parent 556aa7a102
commit 170870b77c
  1. 6
      libavformat/rtsp.c

@ -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