lavf/ffm: use AVOption API to store/restore stream properties

Multimedia / FFmpeg - Lukasz Marek [gmail.com] - 15 November 2014 18:13 EST

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

745730c lavf/ffm: use AVOption API to store/restore stream properties
libavformat/ffmdec.c | 29 +++++++++++++++
libavformat/ffmenc.c | 96 ++++++++++++++++++++++++--------------------------
tests/ref/lavf/ffm | 2 +-
3 files changed, 76 insertions(+), 51 deletions(-)

  • Share