lavf/ffm: use AVOption API to store/restore stream properties
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Tue, 11 Nov 2014 07:20:02 +0000 (08:20 +0100)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Sun, 16 Nov 2014 00:13:38 +0000 (01:13 +0100)
commit745730c9c208c40f800d5d71ffa39aceab6ce044
tree485d03c81d0d5529fd0c96fa60169fa289edab6a
parenta38e06c1aaac3002838e19612df375d42cc28a76
lavf/ffm: use AVOption API to store/restore stream properties

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@gmail.com>
libavformat/ffmdec.c
libavformat/ffmenc.c
tests/ref/lavf/ffm