mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 01:21:06 +00:00
avformat/jvdec: add fall-through annotations
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
* @author Peter Ross <pross@xvid.org>
|
||||
*/
|
||||
|
||||
#include "libavutil/attributes.h"
|
||||
#include "libavutil/channel_layout.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavutil/mem.h"
|
||||
@@ -182,6 +183,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
return 0;
|
||||
}
|
||||
av_fallthrough;
|
||||
case JV_VIDEO:
|
||||
jv->state++;
|
||||
if (jvf->video_size || jvf->palette_size) {
|
||||
@@ -206,6 +208,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
return 0;
|
||||
}
|
||||
av_fallthrough;
|
||||
case JV_PADDING:
|
||||
avio_skip(pb, FFMAX(e->size - jvf->audio_size - jvf->video_size
|
||||
- jvf->palette_size, 0));
|
||||
|
||||
Reference in New Issue
Block a user