upipe_avcenc: fix memleak with ffmpeg >= 1.2

Free AVPacket.data using av_free_packet().