p*menc: use the AVFrame API properly.