Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (112)

Sur d’autres sites (11316)

  • Revision 125132 : le commit précédent avait oublié la partie PHP des ...

    11 juin 2020, par Maïeul Rouquette — Log

    le commit précédent avait oublié la partie PHP des affichages_conditionnels avec MATCh

  • avfilter/formats : Make check for buffer overflow redundant

    13 août 2020, par Andreas Rheinhardt
    avfilter/formats : Make check for buffer overflow redundant
    

    and remove the redundant check.

    This check for whether the allocated buffer is sufficient has been added
    in commit 1cbf7fb4345a3e5b7791d483241bf4759bde4ece (merging commit
    5775a1832c4165e6acc1d307004b38701bb463f4). It is not sufficient to
    detect invalid input lists (namely lists with duplicates) ; its only use
    is to avoid buffer overflows. And this can be achieved by simpler means :
    Make sure that one allocates space for so many elements as the outer loop
    ranges over and break out of the inner loop if a match has been found.
    For valid input without duplicates, no further match will be found anyway.

    This change will temporarily make the allocated formats array larger
    than before and larger than necessary ; this will be fixed in a later
    commit that avoids the allocation altogether.

    If a check for duplicates in the lists is deemed necessary, it should be
    done properly somewhere else.

    Finally, the error message that is removed in this commit used
    __FUNCTION__, which is a GCC extension (C99 added __func__ for this).
    So this commit removes a warning when compiling in -pedantic mode.

    Reviewed-by : Nicolas George <george@nsup.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavfilter/formats.c
  • How to Extract Timestamps and Corresponding Screenshots from .MTS File ?

    1er juin 2016, par broyang

    I have a .MTS file, and I want to output its timestamps every n milliseconds. I have to match each timestamp with its corresponding screenshot of the video.

    I tried using avchd2srt to output each timestamp, but it outputs a .srt file. I’m trying to output the timestamps in a .txt file, and the pictures in jpeg format. Does anyone have suggestions on what to do ?