diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index e5515a27f3daff24b8e5a0c619d858569dba50c7..7829c7fb4c892420e05e88ec726a76d8dfcbbdb3 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -544,8 +544,8 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
                 pes = add_pes_stream(ts, pid, stream_type);
                 if (pes)
                     st = new_pes_av_stream(pes, 0);
-                break;
             }
+            break;
         default:
             /* we ignore the other streams */
             break;