Commit 3f5d1c81 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'adc214e6'

* commit 'adc214e6':
  rtpenc: Avoid brittle switch fallthroughs
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 03d1467c adc214e6
......@@ -259,8 +259,11 @@ static int rtp_write_header(AVFormatContext *s1)
av_log(s1, AV_LOG_ERROR, "Only mono is supported\n");
goto fail;
}
s->num_frames = 0;
goto defaultcase;
case AV_CODEC_ID_AAC:
s->num_frames = 0;
goto defaultcase;
default:
defaultcase:
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
......
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