[FFmpeg-devel] [PATCH 9/9] lavf/ffm: use AVOption API to store/restore stream properties

Michael Niedermayer michaelni at gmx.at
Wed Nov 12 03:19:27 CET 2014


On Wed, Nov 12, 2014 at 12:02:07AM +0100, Lukasz Marek wrote:
> On 11.11.2014 08:31, Lukasz Marek wrote:
> >This is a generic solution that will not reqiore modifications when new options are added.
> >This also fixes problem with current implementation when qmin or qmax=-1.
> >Only 8 bits was sent and read back as 255.
> >
> >Fixes #1275
> >Fixes #1461
> >
> >Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> >---
> >  libavformat/ffmdec.c | 20 +++++++++++++++
> >  libavformat/ffmenc.c | 70 +++++++++++++++-------------------------------------
> >  2 files changed, 40 insertions(+), 50 deletions(-)
> 
> Updated version attached.

not related to this patch specifically but please test
fate-opt under valgrind
it seems one of the patches adds a memleak

==16696== 4 bytes in 1 blocks are definitely lost in loss record 1 of 6
==16696==    at 0x4C2A6C5: memalign (vg_replace_malloc.c:727)
==16696==    by 0x4C2A760: posix_memalign (vg_replace_malloc.c:876)
==16696==    by 0x40FC2D: av_malloc (mem.c:95)
==16696==    by 0x402022: set_string_binary (opt.c:142)
==16696==    by 0x40617F: av_opt_set_defaults2 (opt.c:1235)
==16696==    by 0x405ED1: av_opt_set_defaults (opt.c:1175)
==16696==    by 0x40809C: main (opt.c:1986)


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141112/37cdabfd/attachment.asc>


More information about the ffmpeg-devel mailing list