bethsoftvid: add audio stream only after getting the first audio packet
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 19 Jan 2012 00:50:37 +0000 (19:50 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 16 Feb 2012 15:47:11 +0000 (10:47 -0500)
commit773ff823dac3da733c251b4cb1cc95b3b7e03001
treed54ec0c380eaa614584eed1a6f3ab19b69797aab
parent9546f331c6723d046f302da15acaa0ed52c03866
bethsoftvid: add audio stream only after getting the first audio packet

This avoids initializing a stream with dummy values or when the file does not
contain audio.
Also set duration for audio packets, using the sample rate as the time base.
libavformat/bethsoftvid.c