Commit Graph

1545 Commits

Author SHA1 Message Date
Atrotro
ed24d866ce 同步平台漏洞修复
Signed-off-by: Atrotro <wanganzhouhh@163.com>
2024-08-27 10:30:32 +08:00
ziyugao
b9139b53be
update libavformat/mov.c.
ffmpeg问题修改

Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
2024-08-20 02:23:56 +00:00
Atrotro
9f132930e1 Merge branch 'master' of https://gitee.com/atrotro/third_party_ffmpeg 2024-08-08 21:52:08 +08:00
Atrotro
d4428faaee Merge branch 'master' of https://gitee.com/atrotro/third_party_ffmpeg 2024-08-08 21:36:49 +08:00
Atrotro
f583a06b14 Merge branch 'master' of https://gitee.com/atrotro/third_party_ffmpeg 2024-08-08 20:37:27 +08:00
Atrotro
92a3c0acc9 Merge branch 'master' of https://gitee.com/atrotro/third_party_ffmpeg 2024-08-08 20:12:23 +08:00
Atrotro
0ddfeded42 Merge branch 'master' of https://gitee.com/atrotro/third_party_ffmpeg 2024-08-08 16:38:30 +08:00
Atrotro
6665da3719 Merge branch 'master' of https://gitee.com/atrotro/third_party_ffmpeg 2024-08-08 16:36:35 +08:00
Atrotro
2ebad80808 【修改说明】:pts帧号互转
Signed-off-by: Atrotro <wanganzhouhh@163.com>
2024-08-07 12:47:30 +08:00
Atrotro
dce2ddd510 【修改说明】:pts帧号互转
Signed-off-by: Atrotro <wanganzhouhh@163.com>
2024-08-07 12:41:01 +08:00
zhenghongda
31a6cff6bb Fixed the abnormal decryption issue of MP4 audio in cens encryption mode
Signed-off-by: zhenghongda <18810008421@163.com>
2024-07-31 09:36:32 +00:00
Bojack
d12adbf773 fix livephoto parse
Signed-off-by: Bojack <yangjunhui_job@163.com>
2024-07-29 22:30:24 +08:00
Atrotro
f80c2d3873 【修改说明】解决字幕轨seek问题
Signed-off-by: Atrotro <wanganzhouhh@163.com>
2024-07-26 16:02:05 +08:00
Atrotro
da3ef3dcce 【修改说明】:提供内置vtt解析能力
Signed-off-by: Atrotro <wanganzhouhh@163.com>
2024-07-20 11:07:45 +08:00
Bojack
7c61a07059 add vvc support
Signed-off-by: Bojack <yangjunhui_job@163.com>
2024-07-15 21:52:31 +08:00
openharmony_ci
bccd518f2a
!232 增加livephoto功能
Merge pull request !232 from Bojack/0712livephoto
2024-07-13 07:03:16 +00:00
Bojack
81f5ca5888 add livephoto
Signed-off-by: Bojack <yangjunhui_job@163.com>
2024-07-12 11:03:08 +08:00
ziyugao
fda9984663
update libavformat/mov.c.
fix ffmpeg bug

Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
2024-07-10 03:33:26 +00:00
ziyugao
a98a2bbfea
update libavformat/mov.c.
fix ffmpeg bug

Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
2024-07-10 01:10:06 +00:00
ziyugao
9ef47b0440
update libavformat/mov.c.
fix ffmepg bug

Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
2024-07-10 01:06:03 +00:00
openharmony_ci
7c88d8a30e
!200 revert
Merge pull request !200 from Bojack/OpenHarmony-5.0-Beta1
2024-05-24 03:04:48 +00:00
Bojack
a369717b4c revert
Signed-off-by: Bojack <yangjunhui_job@163.com>
2024-05-22 16:11:58 +08:00
yj
69b6e9090e
update libavformat/mov.c.
Signed-off-by: yj <yujie57@huawei.com>
2024-05-20 07:20:35 +00:00
yj
eec2959c73
update libavformat/mov.c.
Signed-off-by: yj <yujie57@huawei.com>
2024-05-17 07:02:10 +00:00
yj
f7b34d16b9 skip zreo from gnre
Signed-off-by: yj <yujie57@huawei.com>
2024-05-16 01:26:11 +00:00
cyberbox
3b0fb00990
upgrade ffmpeg from 4.4.1 to 5.1.4
Signed-off-by: cyberbox <468042667@qq.com>
Change-Id: I63cc2a8c9ff6197c67d6b6b47c124882ad942a22
2024-04-25 17:20:18 +08:00
zhenghongda
5ef5378a7f drm cenc decrypt updates the cencInfo structure and adds CEI parsing.
Signed-off-by: zhenghongda <zhenghongda4@huawei.com>
2024-04-01 10:59:42 +08:00
Bojack
dd8937c767 parse camera info
Signed-off-by: Bojack <yangjunhui_job@163.com>
2024-03-27 10:13:11 +08:00
Bojack
fe8862dd84 parse camera info
Signed-off-by: Bojack <yangjunhui_job@163.com>
2024-03-26 19:23:02 +08:00
Bojack
71d570d305 parse camera info
Signed-off-by: Bojack <yangjunhui_job@163.com>
2024-03-26 17:39:15 +08:00
zhenghongda
904c86f997 MOV fixed the new PSSH side data without adding old PSSH side data.
Signed-off-by: zhenghongda <zhenghongda4@huawei.com>
2024-03-25 10:35:59 +08:00
zhenghongda
8f7804a0d8 The MP4 H264 encoding format supports pssh parsing and cenc data encapsulation
Signed-off-by: zhenghongda <zhenghongda4@huawei.com>
2024-03-15 14:29:03 +08:00
vvtest
df7caf8708
ffmpeg回退
Signed-off-by: vvtest <815508462@qq.com>
2024-02-05 11:18:57 +00:00
vvtest
e022934105
ffmpeg升级
Signed-off-by: vvtest <815508462@qq.com>
2024-01-24 09:12:57 +00:00
Bojack
db6d078f45 revert avs3da
Signed-off-by: Bojack <yangjunhui_job@163.com>
2023-10-19 17:46:48 +08:00
Bojack
9e02fb015c fix avs3da macro
Signed-off-by: Bojack <yangjunhui_job@163.com>
2023-10-16 16:56:39 +08:00
Bojack
e37624641e support avs3da
Signed-off-by: Bojack <yangjunhui_job@163.com>
2023-10-16 16:33:21 +08:00
gg0907
65994f5530 upgrade to 4.4.1
Signed-off-by: gg0907 <guohui_1701@163.com>
2022-05-23 11:23:35 +08:00
gg0907
3786ef72b5 ffmpeg upgrade to 4.3.2
Signed-off-by: gg0907 <guohui_1701@163.com>
2022-03-31 16:02:22 +08:00
Zhao Zhili
d4ced9ebb7 avformat/mov: Fix unaligned read of uint32_t and endian-dependance in mov_read_default
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 806a4d5187aeb82b97898683242886ed1e84f894)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-09 12:35:39 +02:00
Zhao Zhili
143e2d0d66 avformat/mov: fix memleaks
Fix two cases of memleaks:
1. The leak of dv_demux
2. The leak of dv_fctx upon dv_demux allocate failure

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit f3dc38a186b2326ce03e50969897ea703817ddb0)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-01 19:02:29 +02:00
Andreas Rheinhardt
7c1ad9d151 libavformat/mov: Fix memleaks when demuxing DV audio
The code for demuxing DV audio predates the introduction of refcounted
packets and when the latter was added, changes to the former were
forgotten. This meant that when avpriv_dv_produce_packet initialized the
packet containing the AVBufferRef, the AVBufferRef as well as the
underlying AVBuffer leaked; the actual packet data didn't leak: They
were directly freed, but not via their AVBuffer's free function.

https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4671/dir1.tar.bz2
contains samples for this (enable_drefs needs to be enabled for them).

Moreover, errors in avpriv_dv_produce_packet were ignored; this has been
changed, too.

Furthermore, in the hypothetical scenario that the track has a palette,
this would leak, too, so reorder the code so that the palette code
appears after the DV audio code.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 61f5c6ab06fc61e0f9f8f8dab5595b8bb202df73)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-01 19:01:56 +02:00
Andreas Rheinhardt
716b5c6ec9 avformat/mov: Fix reel_name size check
Only read str_size bytes from offset 30 of extradata if the extradata is
indeed at least 30 + str_size bytes long.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit ff3fad6b0edb13dd664403b01bc00309f035b110)
2020-06-15 17:30:33 +02:00
Andreas Rheinhardt
9d921e38f4 avformat/mov: Fix memleak upon encountering repeating tags
mov_read_custom tries to read three strings belonging to three different
tags. When an already encountered tag is encountered again, a new buffer
for the string to be read is allocated and stored in the pointer
destined for this particular tag. But in this scenario, said pointer
already holds the address of the string read earlier, leading to a leak.

This commit therefore aborts the reading process upon encountering
an already encountered tag.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit dfef1d5e3cd4dfead84416a01e6c9ff0da50b34d)
2020-06-15 17:30:33 +02:00
Andreas Rheinhardt
30d66abc80 avformat/mov: Fix memleaks upon read_header failure
By default, a demuxer's read_close function is not called automatically
if an error happens when reading the header; instead it is up to the
demuxer to clean up after itself in this case. The mov demuxer did this
by calling its read_close function when it encountered some errors when
reading the header. Yet for other errors (mostly adding side-data to
streams) this has been forgotten, so that all the internal structures
of the demuxer leak.

This commit fixes this by making sure mov_read_close is called when
necessary.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit ac378c535be907ee383dafb430be7216a2920982)
2020-06-15 17:25:46 +02:00
Dale Curtis
8dee726b1a avformat/mov: Check if DTS is AV_NOPTS_VALUE in mov_find_next_sample().
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit bf446711bc8b7f316771870b8d4dc4dd65f5d94b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-06-14 22:02:34 +02:00
Dale Curtis
cd0771c38c avformat/mov: Free temp buffer upon negative sample_size error.
2d8d554f15 added a new error condition
to mov_read_stsz() but forgot to free a temporary buffer when it
occurs.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-05-20 15:47:22 +02:00
Thierry Foucu
1187cbf0ff avformat/mov: Read the QT Metadata Keys only once
If you have a file with multiple Metadata Keys, the second time you parse
the keys, you will re-alloc c->meta_keys without freeing the old one.
This change will avoid parsing all the consecutive Metadata keys.

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-05-15 22:03:36 +02:00
Dale Curtis
2d8d554f15 avformat/mov: Don't allow negative sample sizes.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-05-15 22:03:36 +02:00
Limin Wang
1112823962 avformat/mov: fix av_freep for dovi pointer
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-05-01 12:21:51 +08:00