avisynth: Use av_packet_from_data instead of av_new_packet
authorStephen Hutchinson <qyot27@gmail.com>
Wed, 8 Jan 2014 05:37:57 +0000 (00:37 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Jan 2014 11:54:27 +0000 (12:54 +0100)
commit16ae337bd8d46d98664ede2484dd635dae939771
treea49472fdcfcf4a6c91b51e23be0762bda82bd3c7
parent02dd178d9de9c5e6ec3974658b5efd0c69c5631a
avisynth: Use av_packet_from_data instead of av_new_packet

If the audio changes from 9eac7c4 were merged as they were, this
would cause scripts with both video+audio to fail with a lot of
audio decoding errors (the video would be fine). Scripts with
only one of either video or audio were unaffected. Additionally,
the av_packet changes in general caused seeking to break.

Using av_packet_from_data allows video+audio scripts to work as
expected, without audio decoding errors.  It also fixes seeking.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avisynth.c