dashenc: use avio_dynbuf instead of packet_write callback