Changes between Initial Version and Version 4 of Ticket #7721


Ignore:
Timestamp:
Feb 8, 2019, 11:09:31 PM (4 months ago)
Author:
cehoyos
Comment:

Please test this patch:

diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 59bec6c..167e822 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -504,7 +504,7 @@ char *av_small_strptime(const char *p, const char *fmt, struct tm *dt)
         switch(c) {
         case 'H':
         case 'J':
-            val = date_get_num(&p, 0, c == 'H' ? 23 : INT_MAX, 2);
+            val = date_get_num(&p, 0, c == 'H' ? 23 : INT_MAX, c == 'H' ? 2 : 4);

             if (val == -1)
                 return NULL;

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7721

    • Property Keywords seek added
    • Property Version changed from 4.1 to git-master
    • Property Component changed from undetermined to avutil
  • Ticket #7721 – Description

    initial v4  
    11When attempting to cut a segment of a long (577+ hour) .oga encapsulated FLAC, I found that you cannot enter greater than 99 hours with -ss.
    2 
     2{{{
    33ffmpeg -v 9 -loglevel 99 -ss 100:00:00.00 -i input.raw.oga -f s16le -c:a pcm_s16le -t 01:00:00.00 out.raw
    44ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
     
    6060size=  281250kB time=01:00:00.00 bitrate= 640.0kbits/s speed= 462x   
    6161video:0kB audio:281250kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
    62 
     62}}}
    6363-t likewise suffers from this limitation.
    6464