avformat: replace fall-through comments
This commit is contained in:
+2
-1
@@ -27,6 +27,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libavutil/attributes.h"
|
||||
|
||||
#if CONFIG_ZLIB
|
||||
#include <zlib.h>
|
||||
@@ -293,7 +294,7 @@ static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
|
||||
*maxread = left;
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
// fall-through
|
||||
av_fallthrough;
|
||||
|
||||
case ID3v2_ENCODING_UTF16BE:
|
||||
while ((left > 1) && ch) {
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "config_components.h"
|
||||
#include "libavutil/attributes.h"
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
@@ -769,11 +770,11 @@ static int jpeg_probe(const AVProbeData *p)
|
||||
case APP0:
|
||||
if (c == APP0 && AV_RL32(&b[i + 4]) == MKTAG('J','F','I','F'))
|
||||
got_header = 1;
|
||||
/* fallthrough */
|
||||
av_fallthrough;
|
||||
case APP1:
|
||||
if (c == APP1 && AV_RL32(&b[i + 4]) == MKTAG('E','x','i','f'))
|
||||
got_header = 1;
|
||||
/* fallthrough */
|
||||
av_fallthrough;
|
||||
case APP2:
|
||||
case APP3:
|
||||
case APP4:
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "libavutil/attributes.h"
|
||||
#include "libavutil/avstring.h"
|
||||
#include "libavutil/base64.h"
|
||||
#include "libavutil/bprint.h"
|
||||
@@ -2517,7 +2518,7 @@ static int mkv_parse_block_addition_mappings(AVFormatContext *s, AVStream *st, M
|
||||
"Explicit block Addition Mapping type \"Use BlockAddIDValue\", value %"PRIu64","
|
||||
" name \"%s\" found.\n", mapping->value, mapping->name ? mapping->name : "");
|
||||
type = MATROSKA_BLOCK_ADD_ID_TYPE_OPAQUE;
|
||||
// fall-through
|
||||
av_fallthrough;
|
||||
case MATROSKA_BLOCK_ADD_ID_TYPE_OPAQUE:
|
||||
case MATROSKA_BLOCK_ADD_ID_TYPE_ITU_T_T35:
|
||||
if (mapping->value != type) {
|
||||
|
||||
+2
-1
@@ -31,6 +31,7 @@
|
||||
* http://wiki.multimedia.cx/index.php?title=American_Laser_Games_MM
|
||||
*/
|
||||
|
||||
#include "libavutil/attributes.h"
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "avformat.h"
|
||||
@@ -190,7 +191,7 @@ static int read_packet(AVFormatContext *s,
|
||||
|
||||
default :
|
||||
av_log(s, AV_LOG_INFO, "unknown chunk type 0x%x\n", type);
|
||||
/* fallthrough */
|
||||
av_fallthrough;
|
||||
case MM_TYPE_AUDIO2 :
|
||||
avio_skip(pb, length);
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "libavcodec/av1_parse.h"
|
||||
#include "libavcodec/bytestream.h"
|
||||
#include "libavcodec/cbs_av1.h"
|
||||
#include "libavutil/attributes.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavutil/mem.h"
|
||||
#include "avio_internal.h"
|
||||
@@ -422,7 +423,7 @@ int ff_mov_cenc_av1_write_obus(AVFormatContext *s, MOVMuxCencContext* ctx,
|
||||
fh_data_size = unit->data_size;
|
||||
break;
|
||||
}
|
||||
// fall-through
|
||||
av_fallthrough;
|
||||
case AV1_OBU_SEQUENCE_HEADER:
|
||||
case AV1_OBU_METADATA:
|
||||
avio_write(pb, unit->data, unit->data_size);
|
||||
@@ -433,7 +434,7 @@ int ff_mov_cenc_av1_write_obus(AVFormatContext *s, MOVMuxCencContext* ctx,
|
||||
frame_header = &obu->obu.frame.header;
|
||||
fh_data = unit->data;
|
||||
fh_data_size = unit->data_size;
|
||||
// fall-through
|
||||
av_fallthrough;
|
||||
case AV1_OBU_TILE_GROUP:
|
||||
{
|
||||
const AV1RawTileGroup *tile_group;
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "libavcodec/avcodec.h"
|
||||
#include "libavcodec/codec_par.h"
|
||||
|
||||
#include "libavutil/attributes.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/iamf.h"
|
||||
#include "libavutil/internal.h"
|
||||
@@ -395,7 +396,7 @@ static const AVClass *stream_group_child_iterate(void **opaque)
|
||||
switch(i) {
|
||||
case AV_STREAM_GROUP_PARAMS_NONE:
|
||||
i++;
|
||||
// fall-through
|
||||
av_fallthrough;
|
||||
case AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT:
|
||||
ret = av_iamf_audio_element_get_class();
|
||||
break;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "avformat.h"
|
||||
#include "libavutil/attributes.h"
|
||||
#include "mpegts.h"
|
||||
#include "internal.h"
|
||||
#include "mux.h"
|
||||
@@ -630,7 +631,7 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
|
||||
ff_rtp_send_h263_rfc2190(s1, pkt->data, size, mb_info, mb_info_size);
|
||||
break;
|
||||
}
|
||||
/* Fallthrough */
|
||||
av_fallthrough;
|
||||
case AV_CODEC_ID_H263P:
|
||||
ff_rtp_send_h263(s1, pkt->data, size);
|
||||
break;
|
||||
@@ -669,7 +670,7 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
|
||||
size, s->max_payload_size);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
/* Intentional fallthrough */
|
||||
av_fallthrough;
|
||||
default:
|
||||
/* better than nothing : send the codec raw data */
|
||||
rtp_send_raw(s1, pkt->data, size);
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "libavutil/attributes.h"
|
||||
#include "libavutil/bprint.h"
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
@@ -1118,7 +1119,7 @@ static int generate_interval(void *log, struct sbg_script *s,
|
||||
case SBG_TYPE_SPIN:
|
||||
av_log(log, AV_LOG_WARNING, "Spinning noise not implemented, "
|
||||
"using pink noise instead.\n");
|
||||
/* fall through */
|
||||
av_fallthrough;
|
||||
case SBG_TYPE_NOISE:
|
||||
/* SBaGen's pink noise generator uses:
|
||||
- 1 band of white noise, mean square: 1/3;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "avformat.h"
|
||||
#include "internal.h"
|
||||
#include "libavutil/attributes.h"
|
||||
#include "network.h"
|
||||
#include "url.h"
|
||||
#include "tls.h"
|
||||
@@ -140,7 +141,7 @@ err_config:
|
||||
err_ctx:
|
||||
av_log(h, AV_LOG_ERROR, "%s\n", tls_error(p->ctx));
|
||||
ret = AVERROR(EIO);
|
||||
/* fallthrough */
|
||||
av_fallthrough;
|
||||
fail:
|
||||
if (cfg)
|
||||
tls_config_free(cfg);
|
||||
|
||||
Reference in New Issue
Block a user