plugins/asf: Refactor to conquer
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 21 Aug 2013 22:42:16 +0000 (19:42 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 26 Aug 2013 22:19:05 +0000 (19:19 -0300)
commit9989013931b87b13d3b0c7506fe57b0d5a615cf1
tree61374e63d2493e87e0c6743c324bd61c9c7a21ff
parent88176538f641191ba7ed862514d87913c8c6daf5
plugins/asf: Refactor to conquer

  * Move fields inside asf_info: streams, length, type. They are fields
    important both to audio and video files

  * Pass asf_info around to frame parsers: we only decide if it's audio
    or video later, when all important frames are already parsed

  * Try not to reach 80 cols in some places

  * Move code to free streams to its own function

  * Remove useless #if 0 code

  * Check if we parsed any stream. Would be a violation of the format if
    info.streams was NULL in the end, but at least we don't crash
src/plugins/asf/asf.c