[FFmpeg-devel] [patch] glob matching for image series
eclipse7 at gmx.net
Fri Mar 30 20:56:59 CEST 2012
Michael Niedermayer wrote:
> On Sun, Mar 11, 2012 at 05:46:08PM +0100, Alexander Strasser wrote:
> > img2dec.c | 30 ++++++++++++++++++++++++++++--
> > 1 file changed, 28 insertions(+), 2 deletions(-)
> > 0b95708302972c93e8055e4b040b2a3451d2bd50 0001-img2dec-Recognize-glob-meta-chars-only-if-prefixed-b.patch
> > From e2e044ff23cb28b6c885d041cdd3a59f47c3ec4a Mon Sep 17 00:00:00 2001
> > From: Alexander Strasser <eclipse7 at gmx.net>
> > Date: Sun, 11 Mar 2012 15:24:51 +0100
> > Subject: [PATCH] img2dec: Recognize glob meta chars only if prefixed by %
> > This changes globbing support to only be used if the character
> > contains at least one glob meta character that is preceded by
> > an unescaped %. To escape a literal % one would use %% which is
> > identical to the way to match a % with image2 sequence generation
> > feature.
> > * Makes it possible to have patterns like %04d-[720p].jpg work
> > again with sequence number generation. Previously this would
> > always be detected as a glob pattern and was interpreted by
> > the image2 glob code instead.
> > * Makes it possible to use %*-[720p].jpg to match above pattern
> > without having to double escape it to be not interpreted by most
> > shells and not by the image2 glob code (previously one would
> > need to use \*-\\\[720p\\\].jpg to achieve the same)
I just remembered that this deserves a documentation update.
Will send one this weekend.
More information about the ffmpeg-devel