Context |
Check |
Description |
yinshiyou/commit_msg_loongarch64 |
warning
|
The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
|
yinshiyou/make_loongarch64 |
success
|
Make finished
|
yinshiyou/make_fate_loongarch64 |
success
|
Make fate finished
|
andriy/commit_msg_x86 |
warning
|
The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
|
andriy/make_x86 |
success
|
Make finished
|
andriy/make_fate_x86 |
success
|
Make fate finished
|
andriy/commit_msg_armv7_RPi4 |
warning
|
The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
|
andriy/make_armv7_RPi4 |
success
|
Make finished
|
andriy/make_fate_armv7_RPi4 |
success
|
Make fate finished
|
@@ -315,6 +315,7 @@ typedef struct MOVContext {
int have_read_mfra_size;
uint32_t mfra_size;
uint32_t max_stts_delta;
+ int skip_cover_page;
} MOVContext;
int ff_mp4_read_descr_len(AVIOContext *pb);
@@ -201,6 +201,12 @@ static int mov_read_covr(MOVContext *c, AVIOContext *pb, int type, int len)
return 0;
}
+ if ( c->skip_cover_page ){
+ av_log(c->fc, AV_LOG_WARNING, "skip cover art from parsing \n");
+ avio_skip(pb, len);
+ return 0;
+ }
+
sc = av_mallocz(sizeof(*sc));
if (!sc)
return AVERROR(ENOMEM);
@@ -8866,6 +8872,7 @@ static const AVOption mov_options[] = {
{ "enable_drefs", "Enable external track support.", OFFSET(enable_drefs), AV_OPT_TYPE_BOOL,
{.i64 = 0}, 0, 1, FLAGS },
{ "max_stts_delta", "treat offsets above this value as invalid", OFFSET(max_stts_delta), AV_OPT_TYPE_INT, {.i64 = UINT_MAX-48000*10 }, 0, UINT_MAX, .flags = AV_OPT_FLAG_DECODING_PARAM },
+ { "skip_cover_page", "Skip cover pages from parsing ", OFFSET(skip_cover_page),AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, .flags = FLAGS },
{ NULL },
};
Please look in attached patch. while integrating FFmpeg we require to add "skip_cover_page" options to skip cover art atom from parsing for M4A / MP4 streams. By default values set as 0 ( False ) so it will not impact others. Signed-off-by: Janpriya Malviya <Janpriya_Malviya@bose.com> --- libavformat/isom.h | 1 + libavformat/mov.c | 7 +++++++ 2 files changed, 8 insertions(+)