[FFmpeg-devel] [PATCH] avformat/mov: remove hack breaking creation time parsing

Michael Niedermayer michael at niedermayer.cc
Sun Apr 9 00:14:11 EEST 2023


On Sat, Apr 08, 2023 at 08:37:24PM +0200, Marton Balint wrote:
> Commit 23eeffcd48a15e73fb2649b712870b6d101c5471 added a hack to support invalid
> files where the creation date was encoded as a classic unix timestamp. This
> broke however valid files having creation dates before the unix epoch.
> 
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
>  libavformat/mov.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

This results in:
@@ -1,11 +1,11 @@
-    creation_time   : 2012-06-20T20:58:31.000000Z
-      creation_time   : 2012-06-20T20:58:31.000000Z
-      creation_time   : 2012-06-20T20:58:31.000000Z
+    creation_time   : 1946-06-20T20:58:31.000000Z
+      creation_time   : 1946-06-20T20:58:31.000000Z
+      creation_time   : 1946-06-20T20:58:31.000000Z

Are you sure that 1946 is the correct creation date and not 2012 ?

Thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230408/898147f7/attachment.sig>


More information about the ffmpeg-devel mailing list