mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Merge commit 'adc214e6797750285a5e62634b8521db521162ad'
* commit 'adc214e6797750285a5e62634b8521db521162ad': rtpenc: Avoid brittle switch fallthroughs Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
3f5d1c8130
@ -259,8 +259,11 @@ static int rtp_write_header(AVFormatContext *s1)
|
|||||||
av_log(s1, AV_LOG_ERROR, "Only mono is supported\n");
|
av_log(s1, AV_LOG_ERROR, "Only mono is supported\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
s->num_frames = 0;
|
||||||
|
goto defaultcase;
|
||||||
case AV_CODEC_ID_AAC:
|
case AV_CODEC_ID_AAC:
|
||||||
s->num_frames = 0;
|
s->num_frames = 0;
|
||||||
|
goto defaultcase;
|
||||||
default:
|
default:
|
||||||
defaultcase:
|
defaultcase:
|
||||||
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
||||||
|
Loading…
Reference in New Issue
Block a user