[FFmpeg-devel] [RFC][PATCH] avstring: Add new function av_for_each_pair
Alexander Strasser
eclipse7 at gmx.net
Sat Feb 25 23:03:36 CET 2012
Hi,
Alexander Strasser wrote:
> This function takes a string and tokenizes it into pairs. The
> caller will be called back for each pair.
as Stefano pointed out in the other thread similar functionality is
available in FFmpeg elsewhere (not all public API and has a different
interface).
I implemented this out of curiousity to see how my approach would
work out. I am not really satisfied with the implementation part, I
rushed it and I find it too complex. Ideas for simplification welcome!
For the interface part, you can look at the tests I added in the
patch and as a bonus I have a sample program filling an AVDictionary
attached to this mail.
I hope to read your opinions.
[...]
Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dict_fill.c
Type: text/x-csrc
Size: 886 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120225/597cc847/attachment.bin>
More information about the ffmpeg-devel
mailing list