mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-31 20:02:42 +00:00
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
This commit is contained in:
parent
556aa7a102
commit
170870b77c
@ -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…
Reference in New Issue
Block a user