output example: use the new AVFrame API for allocating the video frame