Commit 2f6327db authored by rbultje's avatar rbultje

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21741 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 011540b6
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment