ffmdec: reset packet_end in case of failure